silence warnings

This commit is contained in:
joeycastillo
2024-07-06 08:52:41 -04:00
parent 226cda748c
commit 89a2af92ef
4 changed files with 5 additions and 2 deletions

View 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);
}

View 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