Skip to content

Commit

Permalink
Fixed warning "A function declaration without a prototype is deprecat…
Browse files Browse the repository at this point in the history
…ed in all versions of C"
  • Loading branch information
slouken committed May 17, 2023
1 parent c699f3d commit 26e780b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/hidapi/SDL_hidapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ StrIsInteger(const char *string)
#endif /* HAVE_INOTIFY */

static void
HIDAPI_InitializeDiscovery()
HIDAPI_InitializeDiscovery(void)
{
SDL_HIDAPI_discovery.m_bInitialized = SDL_TRUE;
SDL_HIDAPI_discovery.m_unDeviceChangeCounter = 1;
Expand Down Expand Up @@ -359,7 +359,7 @@ HIDAPI_InitializeDiscovery()
}

static void
HIDAPI_UpdateDiscovery()
HIDAPI_UpdateDiscovery(void)
{
if (!SDL_HIDAPI_discovery.m_bInitialized) {
HIDAPI_InitializeDiscovery();
Expand Down Expand Up @@ -477,7 +477,7 @@ HIDAPI_UpdateDiscovery()
}

static void
HIDAPI_ShutdownDiscovery()
HIDAPI_ShutdownDiscovery(void)
{
if (!SDL_HIDAPI_discovery.m_bInitialized) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/hidapi/mac/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ int HID_API_EXPORT hid_exit(void)
return 0;
}

static void process_pending_events() {
static void process_pending_events(void) {
SInt32 res;
do {
res = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.001, FALSE);
Expand Down
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoamouse.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ + (NSCursor *)invisibleCursor
}
@end

static SDL_Cursor *Cocoa_CreateDefaultCursor()
static SDL_Cursor *Cocoa_CreateDefaultCursor(void)
{
@autoreleasepool {
NSCursor *nscursor;
Expand Down
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static void ScheduleContextUpdates(SDL_CocoaWindowData *data)
}

/* !!! 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);
}
Expand Down

0 comments on commit 26e780b

Please sign in to comment.