From dc01ea57dcf9fadadb37df060cd7702edaf51c59 Mon Sep 17 00:00:00 2001 From: Sergey Linev <S.Linev@gsi.de> Date: Mon, 27 Nov 2017 12:50:07 +0100 Subject: [PATCH] http: remove civetweb warning switch for GCC Seems to be, has effect on older GCC versions --- net/http/civetweb/civetweb.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/net/http/civetweb/civetweb.c b/net/http/civetweb/civetweb.c index c0ccbaa2740..ff5691e7f02 100644 --- a/net/http/civetweb/civetweb.c +++ b/net/http/civetweb/civetweb.c @@ -17245,12 +17245,14 @@ mg_get_system_info_impl(char *buffer, int buflen) /* Build date */ { -#if defined(__GNUC__) -#pragma GCC diagnostic push + +// Sergey Linev: remove this kind of warning suppression, most probably for old GCC +//#if defined(__GNUC__) +//#pragma GCC diagnostic push /* Disable bogus compiler warning -Wdate-time */ -#pragma GCC diagnostic ignored "-Wall" -#pragma GCC diagnostic ignored "-Werror" -#endif +// #pragma GCC diagnostic ignored "-Wall" +// #pragma GCC diagnostic ignored "-Werror" +//#endif mg_snprintf(NULL, NULL, block, @@ -17259,9 +17261,9 @@ mg_get_system_info_impl(char *buffer, int buflen) __DATE__, eol); -#if defined(__GNUC__) -#pragma GCC diagnostic pop -#endif +//#if defined(__GNUC__) +//#pragma GCC diagnostic pop +//#endif system_info_length += (int)strlen(block); if (system_info_length < buflen) { -- GitLab