From 0031607ce285506de9a13629f077d5095bd98e7b Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 12 May 2013 13:42:20 +0200 Subject: [PATCH] Fixed bug 1845 - SDL_GetNumTouchDevices() has incorrect prototype nfxjfg SDL_touch.h:63:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] Is: extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(); Should be: extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); --- include/SDL_touch.h | 2 +- src/events/SDL_touch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_touch.h b/include/SDL_touch.h index 55176a1d9..0b014d6bd 100644 --- a/include/SDL_touch.h +++ b/include/SDL_touch.h @@ -60,7 +60,7 @@ typedef struct SDL_Finger /** * \brief Get the number of registered touch devices. */ -extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(); +extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); /** * \brief Get the touch ID with the given index, or 0 if the index is invalid. diff --git a/src/events/SDL_touch.c b/src/events/SDL_touch.c index c2bb22ece..6fca4038d 100644 --- a/src/events/SDL_touch.c +++ b/src/events/SDL_touch.c @@ -39,7 +39,7 @@ SDL_TouchInit(void) } int -SDL_GetNumTouchDevices() +SDL_GetNumTouchDevices(void) { return SDL_num_touch; }