With JUCE 9.0.1, Xcode reports new implicit-fallthrough warnings when XCODE_ATTRIBUTE_CLANG_WARN_IMPLICIT_FALLTHROUGH is set to "YES".
This can be fixed by adding Wimplicit-fallthrough to the JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE declarations in the following files:
-
modules/juce_graphics/juce_core_zlib.c -
modules/juce_graphics/juce_graphics_libjpg_1.c -
modules/juce_graphics/juce_graphics_libjpg_2.c -
modules/juce_graphics/juce_graphics_libjpg_3.c -
modules/juce_graphics/juce_graphics_libpng.c -
modules/juce_graphics/juce_graphics_lunasvg.c
This should suppress the warnings for these third-party/generated sources while keeping CLANG_WARN_IMPLICIT_FALLTHROUGH enabled for the rest of the project.