Fixed compile warning on gcc 11
This commit is contained in:
1 parent
c7dff3a22e
commit
0e6d4baa6b
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user