|
@@ -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
|
|
|
|
|
|
|