mirror of
https://github.com/joeycastillo/second-movement.git
synced 2025-10-29 11:38:27 +00:00
silence warnings
This commit is contained in:
parent
87448e6e44
commit
410d32f2d0
@ -189,7 +189,7 @@ bool close_enough_face_loop(movement_event_t event, void *context) {
|
||||
char second_word[3];
|
||||
char third_word[3];
|
||||
if (five_minute_period == 0) { // " HH OC",
|
||||
sprintf(first_word, " ", 3);
|
||||
sprintf(first_word, " ");
|
||||
sprintf(second_word, "%2d", close_enough_hour);
|
||||
strncpy(third_word, oclock_word, 3);
|
||||
} else { // "MM P HH" or "MM 2 HH+1"
|
||||
|
||||
@ -233,7 +233,7 @@ static void display(kitchen_conversions_state_t *state, uint8_t subsec)
|
||||
case input:
|
||||
{
|
||||
char buf[7];
|
||||
sprintf(buf, "%06u", state->selection_value);
|
||||
sprintf(buf, "%06lu", state->selection_value);
|
||||
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
||||
|
||||
// Only allow ints for Gas Mk
|
||||
@ -278,7 +278,7 @@ static void display(kitchen_conversions_state_t *state, uint8_t subsec)
|
||||
{
|
||||
uint32_t rounded = conversion + .5;
|
||||
char buf[7];
|
||||
sprintf(buf, "%6u", rounded);
|
||||
sprintf(buf, "%6lu", rounded);
|
||||
watch_display_text(WATCH_POSITION_BOTTOM, buf);
|
||||
|
||||
// Make sure LSDs always filled
|
||||
|
||||
@ -33,8 +33,6 @@
|
||||
#include <string.h>
|
||||
#include "tarot_face.h"
|
||||
|
||||
uint32_t arc4random_uniform(uint32_t upper_bound);
|
||||
|
||||
#define TAROT_ANIMATION_TICK_FREQUENCY 8
|
||||
#define FLIPPED_BIT_POS 7
|
||||
#define FLIPPED_MASK ((uint8_t)(1 << FLIPPED_BIT_POS))
|
||||
|
||||
@ -89,3 +89,8 @@ void watch_reset_to_bootloader(void);
|
||||
* FIXME: find a better place for this, a couple of watch faces need it.
|
||||
*/
|
||||
void watch_disable_TRNG(void);
|
||||
|
||||
#ifndef arc4random_uniform
|
||||
// not sure why this definition is missing but let's put it here for now
|
||||
uint32_t arc4random_uniform(uint32_t upper_bound);
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user