From 89a2af92ef188f2d51a8e28b7c2ed3d00a71711b Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Sat, 6 Jul 2024 08:52:41 -0400 Subject: [PATCH] silence warnings --- movement/watch_faces/complication/pulsometer_face.c | 1 + movement/watch_faces/complication/totp_face.c | 2 +- watch-library/hardware/watch/watch_private.c | 3 ++- watch-library/shared/watch/watch_private_buzzer.c | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/movement/watch_faces/complication/pulsometer_face.c b/movement/watch_faces/complication/pulsometer_face.c index 3c04aa1..2141b69 100644 --- a/movement/watch_faces/complication/pulsometer_face.c +++ b/movement/watch_faces/complication/pulsometer_face.c @@ -59,6 +59,7 @@ typedef struct { } pulsometer_state_t; static void pulsometer_display_title(pulsometer_state_t *pulsometer) { + (void) pulsometer; watch_display_string(PULSOMETER_FACE_TITLE, 0); } diff --git a/movement/watch_faces/complication/totp_face.c b/movement/watch_faces/complication/totp_face.c index a593e9c..fdb4109 100644 --- a/movement/watch_faces/complication/totp_face.c +++ b/movement/watch_faces/complication/totp_face.c @@ -205,7 +205,7 @@ bool totp_face_loop(movement_event_t event, movement_settings_t *settings, void movement_move_to_face(0); break; case EVENT_ALARM_BUTTON_UP: - if (totp_state->current_index + 1 < totp_total()) { + if ((size_t)totp_state->current_index + 1 < totp_total()) { totp_state->current_index++; } else { // wrap around to first key diff --git a/watch-library/hardware/watch/watch_private.c b/watch-library/hardware/watch/watch_private.c index 4de9713..67d8b51 100644 --- a/watch-library/hardware/watch/watch_private.c +++ b/watch-library/hardware/watch/watch_private.c @@ -119,7 +119,8 @@ int getentropy(void *buf, size_t buflen) { return 0; } -void watch_disable_TRNG() { +void watch_disable_TRNG(void); +void watch_disable_TRNG(void) { // per Microchip datasheet clarification DS80000782, // silicon erratum 1.16.1 indicates that the TRNG may leave internal components powered after being disabled. // the workaround is to disable the TRNG by clearing the control register, twice. diff --git a/watch-library/shared/watch/watch_private_buzzer.c b/watch-library/shared/watch/watch_private_buzzer.c index def54a4..dcdd27f 100644 --- a/watch-library/shared/watch/watch_private_buzzer.c +++ b/watch-library/shared/watch/watch_private_buzzer.c @@ -23,6 +23,7 @@ */ #include "driver_init.h" +uint16_t sequence_length(int8_t *sequence); uint16_t sequence_length(int8_t *sequence) { uint16_t result = 0;