Fixed Xcode warnings

This commit is contained in:
Sam Lantinga committed 2024-01-13 08:15:41 -08:00
1 parent 5db6eb7742
commit b6e97d9ff0
21 files changed
+39 -39

No files matched your search

+3 -3
View File
@@ -28,7 +28,7 @@
#include "SDL_hints.h"
#include "../SDL_error_c.h"
SDL_TLSID SDL_TLSCreate()
SDL_TLSID SDL_TLSCreate(void)
{
static SDL_atomic_t SDL_tls_id;
return SDL_AtomicIncRef(&SDL_tls_id) + 1;
@@ -78,7 +78,7 @@ int SDL_TLSSet(SDL_TLSID id, const void *value, void(SDLCALL *destructor)(void *
return 0;
}
void SDL_TLSCleanup()
void SDL_TLSCleanup(void)
{
SDL_TLSData *storage;
@@ -193,7 +193,7 @@ int SDL_Generic_SetTLSData(SDL_TLSData *data)
}
/* Non-thread-safe global error variable */
static SDL_error *SDL_GetStaticErrBuf()
static SDL_error *SDL_GetStaticErrBuf(void)
{
static SDL_error SDL_global_error;
static char SDL_global_error_str[128];