Skip to content

Commit

Permalink
silence warnings in butterfly_game_face
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Sep 18, 2024
1 parent 88338dc commit c2103d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions movement/watch_faces/complication/butterfly_game_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ static bool _goal_select_screen(movement_event_t event, butterfly_game_state_t *
}

static bool _reset_screen(movement_event_t event, butterfly_game_state_t *state) {
(void) event;

state->score_p1 = 0;
state->score_p2 = 0;

Expand Down Expand Up @@ -416,6 +418,8 @@ static bool _splash_screen(movement_event_t event, butterfly_game_state_t *state

void butterfly_game_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(butterfly_game_state_t));
memset(*context_ptr, 0, sizeof(butterfly_game_state_t));
Expand All @@ -431,6 +435,7 @@ void butterfly_game_face_setup(movement_settings_t *settings, uint8_t watch_face

void butterfly_game_face_activate(movement_settings_t *settings, void *context) {
(void) settings;
(void) context;

movement_request_tick_frequency(TICK_FREQ);
}
Expand Down

0 comments on commit c2103d9

Please sign in to comment.