]> git.earman.xyz Git - sensor-watch.git/commitdiff
silence warnings
authorjoeycastillo <joeycastillo@utexas.edu>
Sat, 6 Jul 2024 12:52:41 +0000 (08:52 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sat, 6 Jul 2024 12:52:41 +0000 (08:52 -0400)
movement/watch_faces/complication/pulsometer_face.c
movement/watch_faces/complication/totp_face.c
watch-library/hardware/watch/watch_private.c
watch-library/shared/watch/watch_private_buzzer.c

index 3c04aa1aaf73c7b9f4f909e8eaba6e58047dc067..2141b69a1fe34b113ca85525357135775abb067f 100644 (file)
@@ -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);
 }
 
index a593e9c914c3ddd360dd83b7dfb7142eca63ec61..fdb410959ef43fd498b53dd63318020b17b06927 100644 (file)
@@ -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
index 4de97131a03178a97aa565a30a9cf9d223d5df55..67d8b51dcdb5f78db85e8e584c8eae555861f7e5 100644 (file)
@@ -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.
index def54a469c59e59ee9f08423d7ad7d46d7b4efd5..dcdd27f8103d0291b85442f1a55f01e0d216ff1a 100644 (file)
@@ -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;