From dd21b36dbd1d4792df33ef59121d21585dd581c8 Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Mon, 5 Aug 2019 14:28:41 +0000 Subject: [PATCH] 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 --- modules/filters/mod_proxy_html.c | 4 ++-- modules/filters/mod_xml2enc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index e1fb23c915..39b78604b1 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 34f9ea45d4..37a57d2f75 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 */ -- 2.50.1