1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed some compatibility problems with older clang versions

This commit is contained in:
jules 2019-06-26 09:52:57 +01:00
parent bc3e330f97
commit 375f11d91b
2 changed files with 6 additions and 2 deletions

View file

@ -47,7 +47,9 @@
#pragma clang diagnostic ignored "-Wdeprecated-declarations" #pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wextra-semi" #pragma clang diagnostic ignored "-Wextra-semi"
#pragma clang diagnostic ignored "-Wmissing-braces" #pragma clang diagnostic ignored "-Wmissing-braces"
#pragma clang diagnostic ignored "-Wshadow-field" #if __has_warning("-Wshadow-field")
#pragma clang diagnostic ignored "-Wshadow-field"
#endif
#if __has_warning("-Wpragma-pack") #if __has_warning("-Wpragma-pack")
#pragma clang diagnostic ignored "-Wpragma-pack" #pragma clang diagnostic ignored "-Wpragma-pack"
#endif #endif

View file

@ -57,7 +57,9 @@
#ifdef JUCE_CLANG #ifdef JUCE_CLANG
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wconversion" #pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wshadow-field" #if __has_warning("-Wshadow-field")
#pragma clang diagnostic ignored "-Wshadow-field"
#endif
#if __has_warning("-Wzero-as-null-pointer-constant") #if __has_warning("-Wzero-as-null-pointer-constant")
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif #endif