Commit 0e6d4baa6b25ba5b2f8c31b0d7621df4ecf68663

Sam Lantinga 2022-05-19T01:23:24

Fixed compile warning on gcc 11

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 648fe6c..305ed7a 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -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);