From fc60db86b3035e581161a1ae3d327074958ae574 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 12 Oct 2017 17:17:09 -0700 Subject: [PATCH] Fixed compiler warning --- include/SDL_stdinc.h | 2 +- src/stdlib/SDL_malloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 16100b8b8700c..f7ac33a90440d 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -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); diff --git a/src/stdlib/SDL_malloc.c b/src/stdlib/SDL_malloc.c index c2cb1f3a636bc..225b19000a7a6 100644 --- a/src/stdlib/SDL_malloc.c +++ b/src/stdlib/SDL_malloc.c @@ -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); }