summaryrefslogtreecommitdiff
path: root/test/httpdunit.h
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-03-20 22:39:48 +0000
committerYann Ylavic <ylavic@apache.org>2018-03-20 22:39:48 +0000
commitc42ef535782160c9ea42d9cee6e13c0cedd8794f (patch)
treeea4205dbd83eb72b27ef90ab0f6bf0fab6f43fa6 /test/httpdunit.h
parentcb43a0b5a09826472aef2d8f33881dd0f3c7911f (diff)
downloadhttpd-c42ef535782160c9ea42d9cee6e13c0cedd8794f.tar.gz
#pragma GCC diagnostic push/pop exist in gcc >= 4.6 only.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827372 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/httpdunit.h')
-rw-r--r--test/httpdunit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/httpdunit.h b/test/httpdunit.h
index d858417bcb..8c76d434a2 100644
--- a/test/httpdunit.h
+++ b/test/httpdunit.h
@@ -36,7 +36,9 @@
#include "apr.h" /* for pid_t on Windows, needed by Check */
#if defined(__GNUC__)
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
#pragma GCC diagnostic push
+#endif
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#elif defined(__clang__)
#pragma clang diagnostic push
@@ -46,7 +48,9 @@
#include "check.h"
#if defined(__GNUC__)
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
#pragma GCC diagnostic pop
+#endif
#elif defined(__clang__)
#pragma clang diagnostic pop
#endif