Skip to content

Commit

Permalink
silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Jul 6, 2024
1 parent 226cda7 commit 89a2af9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions movement/watch_faces/complication/pulsometer_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion movement/watch_faces/complication/totp_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion watch-library/hardware/watch/watch_private.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions watch-library/shared/watch/watch_private_buzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89a2af9

Please sign in to comment.