Sfoglia il codice sorgente

Suppress -Wcast-align in curl and bzip2

Trust upstream developers of third-party code.
Brad King 15 anni fa
parent
commit
87fde60563
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 3 0
      Utilities/cmbzip2/bzlib_private.h
  2. 4 0
      Utilities/cmcurl/setup.h

+ 3 - 0
Utilities/cmbzip2/bzlib_private.h

@@ -47,6 +47,9 @@
 /* warning C4127: conditional expression is constant*/
 # pragma warning(disable:4127)
 #endif
+#if defined(__clang__)
+# pragma clang diagnostic ignored "-Wcast-align"
+#endif
 
 /*-- General stuff. --*/
 

+ 4 - 0
Utilities/cmcurl/setup.h

@@ -42,6 +42,10 @@
 #define WIN32
 #endif
 
+#if defined(__clang__)
+# pragma clang diagnostic ignored "-Wcast-align"
+#endif
+
 /*
  * Include configuration script results or hand-crafted
  * configuration file for platforms which lack config tool.