From: Rainer Jung Date: Mon, 5 Aug 2019 14:28:41 +0000 (+0000) Subject: Use the right pragma syntax. X-Git-Tag: 2.5.0-alpha2-ci-test-only~1957 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd21b36dbd1d4792df33ef59121d21585dd581c8;p=thirdparty%2Fapache%2Fhttpd.git Use the right pragma syntax. Follow-up to r1864435. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864438 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index e1fb23c9155..39b78604b15 100644 --- a/modules/filters/mod_proxy_html.c +++ b/modules/filters/mod_proxy_html.c @@ -34,10 +34,10 @@ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) #pragma GCC diagnostic push #endif -#pragma GCC diagnostic ignored "-Werror=comment" +#pragma GCC diagnostic warning "-Wcomment" #elif defined(__clang__) #pragma clang diagnostic push -#pragma clang diagnostic ignored "-Werror=comment" +#pragma clang diagnostic warning "-Wcomment" #endif /* libxml2 */ diff --git a/modules/filters/mod_xml2enc.c b/modules/filters/mod_xml2enc.c index 34f9ea45d4f..37a57d2f754 100644 --- a/modules/filters/mod_xml2enc.c +++ b/modules/filters/mod_xml2enc.c @@ -29,11 +29,11 @@ #pragma GCC diagnostic push #endif #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) -#pragma GCC diagnostic ignored "-Werror=comment" +#pragma GCC diagnostic warning "-Wcomment" #endif #elif defined(__clang__) #pragma clang diagnostic push -#pragma clang diagnostic ignored "-Werror=comment" +#pragma clang diagnostic warning "-Wcomment" #endif /* libxml2 */