Fix warning for Android NDK compiler: "function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]"

https://stackoverflow.com/questions/42125/warning-error-function-declaration-isnt-a-prototype
In C int foo() and int foo(void) are different functions. int foo() accepts an arbitrary number of arguments, while int foo(void) accepts 0 arguments. In C++ they mean the same thing.

(cherry picked from commit ccade50587)
This commit is contained in:
Amir 2024-07-17 21:32:03 +04:00 committed by Sam Lantinga
parent 279eb89ce5
commit e7a47e783b
89 changed files with 210 additions and 210 deletions

View file

@ -107,7 +107,7 @@ static int virtual_axis_start_x;
static int virtual_axis_start_y;
static SDL_GameControllerButton virtual_button_active = SDL_CONTROLLER_BUTTON_INVALID;
static void UpdateWindowTitle()
static void UpdateWindowTitle(void)
{
if (!window) {
return;
@ -329,7 +329,7 @@ typedef struct
Uint8 ucLedBlue; /* 46 */
} DS5EffectsState_t;
static void CyclePS5TriggerEffect()
static void CyclePS5TriggerEffect(void)
{
DS5EffectsState_t state;
@ -351,7 +351,7 @@ static void CyclePS5TriggerEffect()
SDL_GameControllerSendEffect(gamecontroller, &state, sizeof(state));
}
static SDL_bool ShowingFront()
static SDL_bool ShowingFront(void)
{
SDL_bool showing_front = SDL_TRUE;
int i;
@ -394,7 +394,7 @@ static int SDLCALL VirtualControllerSetLED(void *userdata, Uint8 red, Uint8 gree
return 0;
}
static void OpenVirtualController()
static void OpenVirtualController(void)
{
SDL_VirtualJoystickDesc desc;
int virtual_index;
@ -420,7 +420,7 @@ static void OpenVirtualController()
}
}
static void CloseVirtualController()
static void CloseVirtualController(void)
{
int i;