Skip to content

Commit

Permalink
fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Oct 26, 2024
1 parent 92d826e commit 0c10f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rc_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ static void rc_client_natvis_helper(const rc_client_event_t* event, rc_client_t*
__rc_client_game_hash_list_t client_game_hash_list;
} natvis;

memset(&natvis, 0, sizeof(natvis));

/* this code should never be executed. it just ensures these constants get defined for
* the natvis VisualStudio extension as they're not used directly in the code. */
natvis.achievement_type.value = RC_CLIENT_ACHIEVEMENT_TYPE_STANDARD;
Expand Down
2 changes: 2 additions & 0 deletions src/rcheevos/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ static void rc_runtime_natvis_helper(void)
__rc_runtime_lboard_list_t lboard_list;
} natvis;

memset(&natvis, 0, sizeof(natvis));

natvis.lboard_list.runtime.lboard_count = 0;
}

Expand Down

0 comments on commit 0c10f9b

Please sign in to comment.