Skip to content
Snippets Groups Projects
Commit 27a42bab authored by Sergey Linev's avatar Sergey Linev Committed by Axel Naumann
Browse files

http: -Wdate-time warning appeared first in gcc5, not exits before

parent d445faae
No related branches found
No related tags found
No related merge requests found
...@@ -19046,9 +19046,11 @@ mg_get_system_info_impl(char *buffer, int buflen) ...@@ -19046,9 +19046,11 @@ mg_get_system_info_impl(char *buffer, int buflen)
/* Build date */ /* Build date */
{ {
#if defined(GCC_DIAGNOSTIC) #if defined(GCC_DIAGNOSTIC)
#if GCC_VERSION >= 50000
#pragma GCC diagnostic push #pragma GCC diagnostic push
/* Disable bogus compiler warning -Wdate-time */ /* Disable bogus compiler warning -Wdate-time */
#pragma GCC diagnostic ignored "-Wdate-time" #pragma GCC diagnostic ignored "-Wdate-time"
#endif
#endif #endif
mg_snprintf(NULL, mg_snprintf(NULL,
NULL, NULL,
...@@ -19059,7 +19061,9 @@ mg_get_system_info_impl(char *buffer, int buflen) ...@@ -19059,7 +19061,9 @@ mg_get_system_info_impl(char *buffer, int buflen)
eol); eol);
   
#if defined(GCC_DIAGNOSTIC) #if defined(GCC_DIAGNOSTIC)
#if GCC_VERSION >= 50000
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif
#endif #endif
   
system_info_length += (int)strlen(block); system_info_length += (int)strlen(block);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment