Browse Source

Fixed some compatibility problems with older clang versions

tags/2021-05-28
jules 6 years ago
parent
commit
375f11d91b
2 changed files with 6 additions and 2 deletions
  1. +3
    -1
      modules/juce_audio_processors/format_types/juce_VST3Headers.h
  2. +3
    -1
      modules/juce_box2d/juce_box2d.h

+ 3
- 1
modules/juce_audio_processors/format_types/juce_VST3Headers.h View File

@@ -47,7 +47,9 @@
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wextra-semi"
#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")
#pragma clang diagnostic ignored "-Wpragma-pack"
#endif


+ 3
- 1
modules/juce_box2d/juce_box2d.h View File

@@ -57,7 +57,9 @@
#ifdef JUCE_CLANG
#pragma clang diagnostic push
#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")
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif


Loading…
Cancel
Save