Quellcode durchsuchen

Adjust warnings for clang

bel vor 8 Jahren
Ursprung
Commit
79864fbb01
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 7 0
      test/civetweb_check.h

+ 7 - 0
test/civetweb_check.h

@@ -47,6 +47,13 @@
 #define _CRT_SECURE_NO_DEPRECATE
 #endif
 
+#ifdef __clang__
+/* When using -Weverything, clang does not accept it's own headers
+ * in a release build configuration. Disable what is too much in
+ * -Weverything. */
+#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
+#endif
+
 /* A minimal timeout used for all tests with the "check" framework. */
 #define civetweb_min_test_timeout (30)