summaryrefslogtreecommitdiffhomepage
path: root/editor/tests.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-23 10:49:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-23 10:49:46 +0100
commit1ab99adea0500e6e443b8cbbc20bbc4aa60f5a5f (patch)
treec81ece0d66fb56350eedf9f3bcce1309a1004bf4 /editor/tests.cpp
parent0f25ef5bb5292cffb2ffc59124c97d6332d7ec65 (diff)
kill warning
Diffstat (limited to 'editor/tests.cpp')
-rw-r--r--editor/tests.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/editor/tests.cpp b/editor/tests.cpp
index 4da1553f..819efe72 100644
--- a/editor/tests.cpp
+++ b/editor/tests.cpp
@@ -5,9 +5,19 @@
#include "floormat/events.hpp"
#include "src/nanosecond.inl"
#include "imgui-raii.hpp"
+
+#ifdef __GNUG__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-default"
+#endif
+
#define HAVE_LIBC 1
#include <SDL_keycode.h>
+#ifdef __GNUG__
+#pragma GCC diagnostic pop
+#endif
+
namespace floormat::tests {
static_assert(arraySize(tests_data::fields) == (size_t)Test::COUNT);