summaryrefslogtreecommitdiffstats
path: root/test/test_value.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_value.c')
-rw-r--r--test/test_value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_value.c b/test/test_value.c
index ce95166..fc470e1 100644
--- a/test/test_value.c
+++ b/test/test_value.c
@@ -72,7 +72,7 @@ main(void)
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
-#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
+#elif defined(__GNUC__) && __GNUC__ > 4
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
@@ -81,7 +81,7 @@ main(void)
#if defined(__clang__)
# pragma clang diagnostic pop
-#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
+#elif defined(__GNUC__) && __GNUC__ > 4
# pragma GCC diagnostic pop
#endif