SDL: Adding void to empty function prototype parenthesis

From fd2a266549f9ddbce1826b158b6c583f38b34c05 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Thu, 12 Sep 2024 03:31:09 +0200
Subject: [PATCH] Adding void to empty function prototype parenthesis

---
 src/core/unix/SDL_appid.h    | 4 ++--
 src/events/SDL_mouse.c       | 2 +-
 src/video/x11/SDL_x11sym.h   | 2 +-
 test/testautomation_blit.c   | 2 +-
 test/testgpu_spinning_cube.c | 2 +-
 test/testrelative.c          | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/core/unix/SDL_appid.h b/src/core/unix/SDL_appid.h
index 476605097e98e..37c9e11fc22f7 100644
--- a/src/core/unix/SDL_appid.h
+++ b/src/core/unix/SDL_appid.h
@@ -24,7 +24,7 @@ freely, subject to the following restrictions:
 #ifndef SDL_appid_h_
 #define SDL_appid_h_
 
-extern const char *SDL_GetExeName();
-extern const char *SDL_GetAppID();
+extern const char *SDL_GetExeName(void);
+extern const char *SDL_GetAppID(void);
 
 #endif // SDL_appid_h_
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index 8916750c98f9d..ac6835e3c1226 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -1254,7 +1254,7 @@ void SDL_PerformWarpMouseInWindow(SDL_Window *window, float x, float y, bool ign
     }
 }
 
-void SDL_DisableMouseWarpEmulation()
+void SDL_DisableMouseWarpEmulation(void)
 {
     SDL_Mouse *mouse = SDL_GetMouse();
 
diff --git a/src/video/x11/SDL_x11sym.h b/src/video/x11/SDL_x11sym.h
index a5c800ad74c9a..47e93a0bebef9 100644
--- a/src/video/x11/SDL_x11sym.h
+++ b/src/video/x11/SDL_x11sym.h
@@ -158,7 +158,7 @@ SDL_X11_SYM(Status,XmbTextListToTextProperty,(Display* a,char** b,int c,XICCEnco
 SDL_X11_SYM(Region,XCreateRegion,(void),(),return)
 SDL_X11_SYM(int,XUnionRectWithRegion,(XRectangle *a, Region b, Region c),(a,b,c), return)
 SDL_X11_SYM(void,XDestroyRegion,(Region),(a),)
-SDL_X11_SYM(void,XrmInitialize,(),(),)
+SDL_X11_SYM(void,XrmInitialize,(void),(),)
 SDL_X11_SYM(char*,XResourceManagerString,(Display *display),(display),)
 SDL_X11_SYM(XrmDatabase,XrmGetStringDatabase,(char *data),(data),)
 SDL_X11_SYM(void,XrmDestroyDatabase,(XrmDatabase db),(db),)
diff --git a/test/testautomation_blit.c b/test/testautomation_blit.c
index 5839c358a8420..a461005c5aa37 100644
--- a/test/testautomation_blit.c
+++ b/test/testautomation_blit.c
@@ -33,7 +33,7 @@ Uint64 next(Uint64 state[2]) {
     return result;
 }
 static Uint64 rngState[2] = {1, 2};
-Uint32 getRandomUint32() {
+Uint32 getRandomUint32(void) {
     return (Uint32)next(rngState);
 }
 /* ================= Test Case Helper Functions ================== */
diff --git a/test/testgpu_spinning_cube.c b/test/testgpu_spinning_cube.c
index f8dcf9ba3ccba..8e5bd49f32207 100644
--- a/test/testgpu_spinning_cube.c
+++ b/test/testgpu_spinning_cube.c
@@ -619,7 +619,7 @@ init_render_state(int msaa)
 
 static int done = 0;
 
-void loop()
+void loop(void)
 {
     SDL_Event event;
     int i;
diff --git a/test/testrelative.c b/test/testrelative.c
index 12e21a9323ba9..039ddf4c147a1 100644
--- a/test/testrelative.c
+++ b/test/testrelative.c
@@ -35,7 +35,7 @@ static void DrawRects(SDL_Renderer *renderer)
     SDLTest_DrawString(renderer, 0.f, 0.f, "Relative Mode: Enabled");
 }
 
-static void CenterMouse()
+static void CenterMouse(void)
 {
     /* Warp the mouse back to the center of the window with input focus to use the
      * center point for calculating future motion deltas.