mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
log: fix unused-variable warning when configuring SDL with -DSDL_LIBC=OFF
This commit is contained in:

committed by
Sam Lantinga

parent
0ad22cfe37
commit
67d517907b
@@ -65,6 +65,11 @@ static SDL_LogOutputFunction SDL_log_function = SDL_LogOutput;
|
|||||||
static void *SDL_log_userdata = NULL;
|
static void *SDL_log_userdata = NULL;
|
||||||
static SDL_mutex *log_function_mutex = NULL;
|
static SDL_mutex *log_function_mutex = NULL;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
#endif
|
||||||
|
|
||||||
static const char *SDL_priority_prefixes[SDL_NUM_LOG_PRIORITIES] = {
|
static const char *SDL_priority_prefixes[SDL_NUM_LOG_PRIORITIES] = {
|
||||||
NULL,
|
NULL,
|
||||||
"VERBOSE",
|
"VERBOSE",
|
||||||
@@ -75,6 +80,10 @@ static const char *SDL_priority_prefixes[SDL_NUM_LOG_PRIORITIES] = {
|
|||||||
"CRITICAL"
|
"CRITICAL"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
static const char *SDL_category_prefixes[] = {
|
static const char *SDL_category_prefixes[] = {
|
||||||
"APP",
|
"APP",
|
||||||
|
Reference in New Issue
Block a user