Fixed bug 1845 - SDL_GetNumTouchDevices() has incorrect prototype
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 12 May 2013 13:42:20 +0200
changeset 7170d5f5a491fe49
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
     1.1 --- a/include/SDL_touch.h	Sun May 12 13:40:02 2013 +0200
     1.2 +++ b/include/SDL_touch.h	Sun May 12 13:42:20 2013 +0200
     1.3 @@ -60,7 +60,7 @@
     1.4  /**
     1.5   *  \brief Get the number of registered touch devices.
     1.6   */
     1.7 -extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices();
     1.8 +extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void);
     1.9  
    1.10  /**
    1.11   *  \brief Get the touch ID with the given index, or 0 if the index is invalid.
     2.1 --- a/src/events/SDL_touch.c	Sun May 12 13:40:02 2013 +0200
     2.2 +++ b/src/events/SDL_touch.c	Sun May 12 13:42:20 2013 +0200
     2.3 @@ -39,7 +39,7 @@
     2.4  }
     2.5  
     2.6  int
     2.7 -SDL_GetNumTouchDevices()
     2.8 +SDL_GetNumTouchDevices(void)
     2.9  {
    2.10      return SDL_num_touch;
    2.11  }