Skip to content

Commit

Permalink
Fixed compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 13, 2017
1 parent 22b6df5 commit fc60db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_stdinc.h
Expand Up @@ -376,7 +376,7 @@ extern DECLSPEC int SDLCALL SDL_SetMemoryFunctions(SDL_malloc_func malloc_func,
/**
* \brief Get the number of outstanding (unfreed) allocations
*/
extern DECLSPEC int SDLCALL SDL_GetNumAllocations();
extern DECLSPEC int SDLCALL SDL_GetNumAllocations(void);

extern DECLSPEC char *SDLCALL SDL_getenv(const char *name);
extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite);
Expand Down
2 changes: 1 addition & 1 deletion src/stdlib/SDL_malloc.c
Expand Up @@ -5312,7 +5312,7 @@ int SDL_SetMemoryFunctions(SDL_malloc_func malloc_func,
return 0;
}

int SDL_GetNumAllocations()
int SDL_GetNumAllocations(void)
{
return SDL_AtomicGet(&s_mem.num_allocations);
}
Expand Down

0 comments on commit fc60db8

Please sign in to comment.