diff options
| author | Yann Ylavic <ylavic@apache.org> | 2017-10-03 09:26:47 +0000 |
|---|---|---|
| committer | Yann Ylavic <ylavic@apache.org> | 2017-10-03 09:26:47 +0000 |
| commit | 21857e40fab155e71de4e53ccd8c05b2796964f0 (patch) | |
| tree | 3b8f4b6d978e348266cc94f605e52921ea4e783e /test/httpdunit.h | |
| parent | 4f6af33ff1557c2d1469c6c2a3b79cfa25293bc9 (diff) | |
| download | httpd-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.h')
| -rw-r--r-- | test/httpdunit.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/httpdunit.h b/test/httpdunit.h index 4df39b0d6e..d858417bcb 100644 --- a/test/httpdunit.h +++ b/test/httpdunit.h @@ -35,15 +35,21 @@ #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 /* * Boilerplate Macros |
