From 1ab99adea0500e6e443b8cbbc20bbc4aa60f5a5f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Mar 2024 10:49:46 +0100 Subject: kill warning --- editor/tests.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'editor') 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 +#ifdef __GNUG__ +#pragma GCC diagnostic pop +#endif + namespace floormat::tests { static_assert(arraySize(tests_data::fields) == (size_t)Test::COUNT); -- cgit v1.2.3