diff --git a/tests/unit-math/test-math.c b/tests/unit-math/test-math.c index 9e4c7b8e21..da075caf83 100644 --- a/tests/unit-math/test-math.c +++ b/tests/unit-math/test-math.c @@ -94,10 +94,10 @@ main (void) { #define INF INFINITY -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wliteral-range" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wliteral-range" #include "test-math.inc.h" -#pragma clang diagnostic pop +#pragma GCC diagnostic pop return passed ? 0 : 1; } /* main */