]> git.earman.xyz Git - sensor-watch.git/commitdiff
silence most warnings
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 16 Apr 2023 14:49:03 +0000 (10:49 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 16 Apr 2023 14:49:03 +0000 (10:49 -0400)
movement/watch_faces/complication/planetary_hours_face.c
movement/watch_faces/complication/planetary_time_face.c
movement/watch_faces/complication/time_left_face.c

index f5f36f193772883940c77e02be9e6b6da73c6638..acded9175a6276de8e25a99c3ce7670097520cb6 100644 (file)
@@ -335,6 +335,7 @@ static void _planetary_hours(movement_settings_t *settings, planetary_hours_stat
 // PUBLIC WATCH FACE FUNCTIONS ////////////////////////////////////////////////
 
 void planetary_hours_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
+    (void) watch_face_index;
     (void) settings;
     if (*context_ptr == NULL) {
         *context_ptr = malloc(sizeof(planetary_hours_state_t));
index 3d4ce34e0d1fb9251935e9f54484bf0784695907..56a18cf2289aa7b734d2fbd781e0f638b41cfb79 100644 (file)
@@ -205,7 +205,7 @@ static void _planetary_time(movement_event_t event, movement_settings_t *setting
     char ruler[3];
     double night_hour_count = 0.0;
     uint8_t weekday, planet, planetary_hour;
-    double hour_duration, current_hour, current_minute, current_second, second_duration;
+    double hour_duration, current_hour, current_minute, current_second;
 
         watch_set_colon();
 
@@ -271,6 +271,7 @@ static void _planetary_time(movement_event_t event, movement_settings_t *setting
 // PUBLIC WATCH FACE FUNCTIONS ////////////////////////////////////////////////
 
 void planetary_time_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
+    (void) watch_face_index;
     (void) settings;
     if (*context_ptr == NULL) {
         *context_ptr = malloc(sizeof(planetary_time_state_t));
index 9515cfe765ca1d30ee9393b39ef8303ae4806728..cc1077aa259343b558a7ff89faef6b60a4de632f 100644 (file)
@@ -83,7 +83,7 @@ static void _display_percentage(float percentage, char *buf) {
 
 /// @brief draw the current state to the display
 static void _draw(time_left_state_t *state, uint8_t subsecond) {
-    char buf[14];
+    char buf[17];
     watch_display_character(_state_titles[state->current_page][0], 0);
     watch_display_character(_state_titles[state->current_page][1], 1);
     watch_display_character(' ', 2);