From 3303060c59e1591bd2c6bb7cfc5b21e550728d6d Mon Sep 17 00:00:00 2001 From: Jeremy O'Brien Date: Mon, 23 Jan 2023 16:26:47 -0500 Subject: ships_face: fix compiler warnings (#186) --- movement/watch_faces/complication/sailing_face.c | 3 +-- movement/watch_faces/complication/ships_bell_face.c | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/movement/watch_faces/complication/sailing_face.c b/movement/watch_faces/complication/sailing_face.c index 97868a54..0bdbe8ea 100644 --- a/movement/watch_faces/complication/sailing_face.c +++ b/movement/watch_faces/complication/sailing_face.c @@ -33,7 +33,6 @@ #define sl_SELECTIONS 6 #define DEFAULT_MINUTES { 5,4,1,0,0,0 } -#define UNUSED(x) (void)(x) static inline int32_t get_tz_offset(movement_settings_t *settings) { return movement_timezone_offsets[settings->bit.time_zone] * 60; @@ -66,7 +65,7 @@ static void start(sailing_state_t *state, movement_settings_t *settings) { } static void draw(sailing_state_t *state, uint8_t subsecond, movement_settings_t *settings) { - UNUSED(settings); + (void) settings; char tmp[24]; char buf[16]; diff --git a/movement/watch_faces/complication/ships_bell_face.c b/movement/watch_faces/complication/ships_bell_face.c index c0ccc979..fbcfea8f 100644 --- a/movement/watch_faces/complication/ships_bell_face.c +++ b/movement/watch_faces/complication/ships_bell_face.c @@ -63,6 +63,8 @@ static void ships_bell_draw(ships_bell_state_t *state) { void ships_bell_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void **context_ptr) { (void) settings; + (void) watch_face_index; + if (*context_ptr == NULL) { *context_ptr = malloc(sizeof(ships_bell_state_t)); memset(*context_ptr, 0, sizeof(ships_bell_state_t)); @@ -81,6 +83,8 @@ void ships_bell_face_activate(movement_settings_t *settings, void *context) { } bool ships_bell_face_loop(movement_event_t event, movement_settings_t *settings, void *context) { + (void) settings; + ships_bell_state_t *state = (ships_bell_state_t *) context; switch (event.event_type) { -- cgit v1.2.3