diff --git a/test/src/unit-udt.cpp b/test/src/unit-udt.cpp index bab9151af..008257bf6 100644 --- a/test/src/unit-udt.cpp +++ b/test/src/unit-udt.cpp @@ -29,6 +29,9 @@ SOFTWARE. #include "doctest_compatibility.h" +DOCTEST_GCC_SUPPRESS_WARNING_PUSH +DOCTEST_GCC_SUPPRESS_WARNING("-Wnoexcept") + #include using nlohmann::json; @@ -38,9 +41,6 @@ using nlohmann::json; #include #include -DOCTEST_GCC_SUPPRESS_WARNING_PUSH -DOCTEST_GCC_SUPPRESS_WARNING("-Wnoexcept") - namespace udt { enum class country