summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/SDL2/src/SDL_error.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-11-16 16:26:13 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-11-16 16:28:01 +0100
commit47a05778bff9388fc6c479461dd3804c79d7b539 (patch)
treebb3d4dc8df676b8aa478339b3fd0cd305dc4ac4d /3rdparty/SDL2/src/SDL_error.c
parente61b392edfbfe5b9d70908c087632da915a3abd8 (diff)
Updated SDL2 to 2.0.5 (nw)
Diffstat (limited to '3rdparty/SDL2/src/SDL_error.c')
-rw-r--r--3rdparty/SDL2/src/SDL_error.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/3rdparty/SDL2/src/SDL_error.c b/3rdparty/SDL2/src/SDL_error.c
index ace5cc3972c..804a1eb389c 100644
--- a/3rdparty/SDL2/src/SDL_error.c
+++ b/3rdparty/SDL2/src/SDL_error.c
@@ -116,6 +116,10 @@ SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...)
return -1;
}
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#endif
/* This function has a bit more overhead than most error functions
so that it supports internationalization and thread-safe errors.
*/
@@ -216,6 +220,9 @@ SDL_GetErrorMsg(char *errstr, int maxlen)
}
return (errstr);
}
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
/* Available for backwards compatibility */
const char *