Bläddra i källkod

Disable nonsense warning -Wdate-time (3)

bel2125 7 år sedan
förälder
incheckning
36b40d172c
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      src/civetweb.c

+ 3 - 2
src/civetweb.c

@@ -178,13 +178,14 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
  * in a release build configuration. Disable what is too much in
  * -Weverything. */
 #pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
+#endif
 
+#if defined(__GNUC__) || defined(__MINGW32__)
 /* Who on earth came to the conclusion, using __DATE__ should rise
  * an "expansion of date or time macro is not reproducible"
  * warning. That's exactly what was intended by using this macro.
  * Just disable this nonsense warning. */
-#pragma clang diagnostic ignored "-Wdate-time"
-
+#pragma clang diagnostic ignored "-Wno-error=date-time"
 #endif