Fixed bug 1845 - SDL_GetNumTouchDevices() has incorrect prototype
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 12 May 2013 13:42:20 +0200
changeset 7170 d5f5a491fe49
parent 7169 d27e9ee7310f
child 7171 929700967727
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
src/events/SDL_touch.c
--- a/include/SDL_touch.h	Sun May 12 13:40:02 2013 +0200
+++ b/include/SDL_touch.h	Sun May 12 13:42:20 2013 +0200
@@ -60,7 +60,7 @@
 /**
  *  \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.
--- a/src/events/SDL_touch.c	Sun May 12 13:40:02 2013 +0200
+++ b/src/events/SDL_touch.c	Sun May 12 13:42:20 2013 +0200
@@ -39,7 +39,7 @@
 }
 
 int
-SDL_GetNumTouchDevices()
+SDL_GetNumTouchDevices(void)
 {
     return SDL_num_touch;
 }