Przeglądaj źródła

Remove unknown "pragma GCC diagnostic ignored"

If you get a warning/error
"macro "__DATE__" might prevent reproducible builds"
complain at the GCC developers

See also #561
bel2125 7 lat temu
rodzic
commit
fec09500e0
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      src/civetweb.c

+ 4 - 2
src/civetweb.c

@@ -17990,8 +17990,10 @@ mg_get_system_info_impl(char *buffer, int buflen)
 #if defined(__GNUC__)
 #if defined(__GNUC__)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic push
 /* Disable bogus compiler warning -Wdate-time */
 /* Disable bogus compiler warning -Wdate-time */
-#pragma GCC diagnostic ignored "-Wall"
-#pragma GCC diagnostic ignored "-Werror"
+/* TODO: The obvious flags do not know:
+ * #pragma GCC diagnostic ignored "-Wdate-time"
+ * If someone knows other flags, please tell me. See also #561.
+ */
 #endif
 #endif
 		mg_snprintf(NULL,
 		mg_snprintf(NULL,
 		            NULL,
 		            NULL,