GAME: Fix a warning about different function prototype
Apparently, for MSVC, int foo() is not the same as int foo(void)...
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
#include "joystick_standard.h"
|
#include "joystick_standard.h"
|
||||||
|
|
||||||
|
|
||||||
static void *ch_flightstick_pro_init()
|
static void *ch_flightstick_pro_init(void)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
#include "joystick_standard.h"
|
#include "joystick_standard.h"
|
||||||
|
|
||||||
|
|
||||||
static void *joystick_standard_init()
|
static void *joystick_standard_init(void)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ static int sw_parity(uint16_t data)
|
|||||||
return bits_set & 1;
|
return bits_set & 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *sw_init()
|
static void *sw_init(void)
|
||||||
{
|
{
|
||||||
sw_data *sw = (sw_data *)malloc(sizeof(sw_data));
|
sw_data *sw = (sw_data *)malloc(sizeof(sw_data));
|
||||||
memset(sw, 0, sizeof(sw_data));
|
memset(sw, 0, sizeof(sw_data));
|
||||||
|
|||||||
Reference in New Issue
Block a user