summaryrefslogtreecommitdiff
path: root/test/httpdunit.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2017-10-03 09:26:47 +0000
committerYann Ylavic <ylavic@apache.org>2017-10-03 09:26:47 +0000
commit21857e40fab155e71de4e53ccd8c05b2796964f0 (patch)
tree3b8f4b6d978e348266cc94f605e52921ea4e783e /test/httpdunit.c
parent4f6af33ff1557c2d1469c6c2a3b79cfa25293bc9 (diff)
downloadhttpd-21857e40fab155e71de4e53ccd8c05b2796964f0.tar.gz
Follow up to r1804123 r1809633.
Silence "-Wunknown-pragmas" on GCC... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/httpdunit.c')
-rw-r--r--test/httpdunit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/httpdunit.c b/test/httpdunit.c
index 66ff243a2c..116f045f9c 100644
--- a/test/httpdunit.c
+++ b/test/httpdunit.c
@@ -15,15 +15,22 @@
*/
#include "apr.h" /* for pid_t on Windows, needed by Check */
+
+#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+#elif defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wstrict-prototypes"
+#endif
#include "check.h"
-#pragma clang diagnostic pop
+#if defined(__GNUC__)
#pragma GCC diagnostic pop
+#elif defined(__clang__)
+#pragma clang diagnostic pop
+#endif
#include "apr_general.h"