Skip to content

Commit

Permalink
Silence instance of -Wstringop-overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Aug 28, 2022
1 parent d875313 commit b1d3ce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bdmsupport.c
Expand Up @@ -318,7 +318,10 @@ static void bdmLaunchGame(int id, config_set_t *configSet)
settings = (struct cdvdman_settings_bdm *)((u8 *)irx + index);
if (settings == NULL)
return;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
memset(&settings->frags[0], 0, sizeof(bd_fragment_t) * BDM_MAX_FRAGS);
#pragma GCC diagnostic pop
u8 iTotalFragCount = 0;

//
Expand Down

0 comments on commit b1d3ce7

Please sign in to comment.