From 004ac40226c65e7b40a4f5538a6b62b9422a7a4d Mon Sep 17 00:00:00 2001 From: Petar Popovic Date: Mon, 23 Sep 2024 18:19:08 +0200 Subject: [PATCH] Fix warning: no function prototype --- src/joystick/hidapi/SDL_hidapijoystick.c | 4 ++-- src/joystick/windows/SDL_rawinputjoystick_c.h | 4 ++-- src/video/windows/SDL_windowsmouse.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c index 27911a40db..634d91e7e1 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick.c +++ b/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); } diff --git a/src/joystick/windows/SDL_rawinputjoystick_c.h b/src/joystick/windows/SDL_rawinputjoystick_c.h index 4a79afd52c..6d6fa023a7 100644 --- a/src/joystick/windows/SDL_rawinputjoystick_c.h +++ b/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); diff --git a/src/video/windows/SDL_windowsmouse.h b/src/video/windows/SDL_windowsmouse.h index ba298b736f..4646a2ec10 100644 --- a/src/video/windows/SDL_windowsmouse.h +++ b/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_