Commit f86639d7 authored by Cédric Traizet's avatar Cédric Traizet

WRG: use expansion-to-defined warning on apple only if AppleClang version is > 9.0.0

parent aaf867d2
Pipeline #3269 passed with stages
in 74 minutes and 42 seconds
......@@ -34,7 +34,16 @@
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wheader-guard"
#pragma clang diagnostic ignored "-Wdivision-by-zero"
#if defined(__apple_build_version__)
/* Need AppleClang >= 9.0.0 to support -Wexpansion-to-defined */
#if __apple_build_version__ >= 9000000
#pragma clang diagnostic ignored "-Wexpansion-to-defined"
#endif
#elif __clang_major__ > 3
#pragma clang diagnostic ignored "-Wexpansion-to-defined"
#endif
#else
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
......
......@@ -32,7 +32,16 @@
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wheader-guard"
#if defined(__apple_build_version__)
/* Need AppleClang >= 9.0.0 to support -Wexpansion-to-defined */
#if __apple_build_version__ >= 9000000
#pragma clang diagnostic ignored "-Wexpansion-to-defined"
#endif
#elif __clang_major__ > 3
#pragma clang diagnostic ignored "-Wexpansion-to-defined"
#endif
#else
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment