mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
Fixed warning "A function declaration without a prototype is deprecated in all versions of C"
This commit is contained in:
parent
c699f3d1d8
commit
26e780bc9e
4 changed files with 6 additions and 6 deletions
|
@ -219,7 +219,7 @@ StrIsInteger(const char *string)
|
||||||
#endif /* HAVE_INOTIFY */
|
#endif /* HAVE_INOTIFY */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
HIDAPI_InitializeDiscovery()
|
HIDAPI_InitializeDiscovery(void)
|
||||||
{
|
{
|
||||||
SDL_HIDAPI_discovery.m_bInitialized = SDL_TRUE;
|
SDL_HIDAPI_discovery.m_bInitialized = SDL_TRUE;
|
||||||
SDL_HIDAPI_discovery.m_unDeviceChangeCounter = 1;
|
SDL_HIDAPI_discovery.m_unDeviceChangeCounter = 1;
|
||||||
|
@ -359,7 +359,7 @@ HIDAPI_InitializeDiscovery()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
HIDAPI_UpdateDiscovery()
|
HIDAPI_UpdateDiscovery(void)
|
||||||
{
|
{
|
||||||
if (!SDL_HIDAPI_discovery.m_bInitialized) {
|
if (!SDL_HIDAPI_discovery.m_bInitialized) {
|
||||||
HIDAPI_InitializeDiscovery();
|
HIDAPI_InitializeDiscovery();
|
||||||
|
@ -477,7 +477,7 @@ HIDAPI_UpdateDiscovery()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
HIDAPI_ShutdownDiscovery()
|
HIDAPI_ShutdownDiscovery(void)
|
||||||
{
|
{
|
||||||
if (!SDL_HIDAPI_discovery.m_bInitialized) {
|
if (!SDL_HIDAPI_discovery.m_bInitialized) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -503,7 +503,7 @@ int HID_API_EXPORT hid_exit(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void process_pending_events() {
|
static void process_pending_events(void) {
|
||||||
SInt32 res;
|
SInt32 res;
|
||||||
do {
|
do {
|
||||||
res = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.001, FALSE);
|
res = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.001, FALSE);
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
static SDL_Cursor *Cocoa_CreateDefaultCursor()
|
static SDL_Cursor *Cocoa_CreateDefaultCursor(void)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
NSCursor *nscursor;
|
NSCursor *nscursor;
|
||||||
|
|
|
@ -320,7 +320,7 @@ static void ScheduleContextUpdates(SDL_CocoaWindowData *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* !!! FIXME: this should use a hint callback. */
|
/* !!! FIXME: this should use a hint callback. */
|
||||||
static int GetHintCtrlClickEmulateRightClick()
|
static int GetHintCtrlClickEmulateRightClick(void)
|
||||||
{
|
{
|
||||||
return SDL_GetHintBoolean(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, SDL_FALSE);
|
return SDL_GetHintBoolean(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, SDL_FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue