Fixed compile warning on gcc 11

This commit is contained in:
Sam Lantinga 2022-05-19 01:23:24 -07:00
parent c7dff3a22e
commit 0e6d4baa6b
1 changed files with 2 additions and 2 deletions

View File

@ -4347,7 +4347,7 @@ SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
return SDL_SetError("Invalid number of buttons");
}
SDL_AtomicIncRef(&SDL_messagebox_count);
(void)SDL_AtomicIncRef(&SDL_messagebox_count);
current_window = SDL_GetKeyboardFocus();
relative_mode = SDL_GetRelativeMouseMode();
@ -4455,7 +4455,7 @@ SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
}
}
SDL_AtomicDecRef(&SDL_messagebox_count);
(void)SDL_AtomicDecRef(&SDL_messagebox_count);
if (current_window) {
SDL_RaiseWindow(current_window);