Browse Source

Fix warning: no function prototype

Petar Popovic 6 months ago
parent
commit
004ac40226

+ 2 - 2
src/joystick/hidapi/SDL_hidapijoystick.c

@@ -1246,12 +1246,12 @@ static bool HIDAPI_IsEquivalentToDevice(Uint16 vendor_id, Uint16 product_id, SDL
     return false;
 }
 
-static bool HIDAPI_StartUpdatingDevices()
+static bool HIDAPI_StartUpdatingDevices(void)
 {
     return SDL_CompareAndSwapAtomicInt(&SDL_HIDAPI_updating_devices, false, true);
 }
 
-static void HIDAPI_FinishUpdatingDevices()
+static void HIDAPI_FinishUpdatingDevices(void)
 {
     SDL_SetAtomicInt(&SDL_HIDAPI_updating_devices, false);
 }

+ 2 - 2
src/joystick/windows/SDL_rawinputjoystick_c.h

@@ -22,11 +22,11 @@
 #include "../../core/windows/SDL_windows.h"
 
 // Return true if the RawInput driver is enabled
-extern bool RAWINPUT_IsEnabled();
+extern bool RAWINPUT_IsEnabled(void);
 
 // Registers for input events
 extern int RAWINPUT_RegisterNotifications(HWND hWnd);
-extern int RAWINPUT_UnregisterNotifications();
+extern int RAWINPUT_UnregisterNotifications(void);
 
 // Returns 0 if message was handled
 extern LRESULT CALLBACK RAWINPUT_WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

+ 1 - 1
src/video/windows/SDL_windowsmouse.h

@@ -29,6 +29,6 @@ extern HCURSOR SDL_cursor;
 extern void WIN_InitMouse(SDL_VideoDevice *_this);
 extern void WIN_QuitMouse(SDL_VideoDevice *_this);
 extern void WIN_SetCursorPos(int x, int y);
-extern void WIN_UpdateMouseSystemScale();
+extern void WIN_UpdateMouseSystemScale(void);
 
 #endif // SDL_windowsmouse_h_