Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Oct 2017 17:17:09 -0700
changeset 11618bbbc6db5a2b3
parent 11617 8cd666139071
child 11619 c40333204dec
Fixed compiler warning
include/SDL_stdinc.h
src/stdlib/SDL_malloc.c
     1.1 --- a/include/SDL_stdinc.h	Thu Oct 12 14:46:28 2017 -0700
     1.2 +++ b/include/SDL_stdinc.h	Thu Oct 12 17:17:09 2017 -0700
     1.3 @@ -376,7 +376,7 @@
     1.4  /**
     1.5   *  \brief Get the number of outstanding (unfreed) allocations
     1.6   */
     1.7 -extern DECLSPEC int SDLCALL SDL_GetNumAllocations();
     1.8 +extern DECLSPEC int SDLCALL SDL_GetNumAllocations(void);
     1.9  
    1.10  extern DECLSPEC char *SDLCALL SDL_getenv(const char *name);
    1.11  extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite);
     2.1 --- a/src/stdlib/SDL_malloc.c	Thu Oct 12 14:46:28 2017 -0700
     2.2 +++ b/src/stdlib/SDL_malloc.c	Thu Oct 12 17:17:09 2017 -0700
     2.3 @@ -5312,7 +5312,7 @@
     2.4      return 0;
     2.5  }
     2.6  
     2.7 -int SDL_GetNumAllocations()
     2.8 +int SDL_GetNumAllocations(void)
     2.9  {
    2.10      return SDL_AtomicGet(&s_mem.num_allocations);
    2.11  }