mirror of https://github.com/encounter/SDL.git
Fixed compile warning on gcc 11
This commit is contained in:
parent
c7dff3a22e
commit
0e6d4baa6b
|
@ -4347,7 +4347,7 @@ SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||||
return SDL_SetError("Invalid number of buttons");
|
return SDL_SetError("Invalid number of buttons");
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_AtomicIncRef(&SDL_messagebox_count);
|
(void)SDL_AtomicIncRef(&SDL_messagebox_count);
|
||||||
|
|
||||||
current_window = SDL_GetKeyboardFocus();
|
current_window = SDL_GetKeyboardFocus();
|
||||||
relative_mode = SDL_GetRelativeMouseMode();
|
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) {
|
if (current_window) {
|
||||||
SDL_RaiseWindow(current_window);
|
SDL_RaiseWindow(current_window);
|
||||||
|
|
Loading…
Reference in New Issue