summaryrefslogtreecommitdiff
path: root/src/defaults.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/defaults.cpp')
-rw-r--r--src/defaults.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp
index 3072a2b43..9d18e4bcf 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -39,7 +39,10 @@
#include "const/net/net.h"
#ifndef USE_SDL2
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow")
#include <SDL_keyboard.h>
+#pragma GCC diagnostic pop
#endif // USE_SDL2
#include "debug.h"