Closed julianrex closed 5 years ago
This PR adds data initializers wrapped in #ifdef __clang_analyzer__ to mute static analysis warnings from Xcode (10.2).
data
#ifdef __clang_analyzer__
This will significantly reduce the number of analysis warnings in mapbox-gl-native for iOS/macOS (see https://github.com/mapbox/mapbox-gl-native/issues/7668#issuecomment-482767630).
mapbox-gl-native
/cc @tmpsantos @kkaefer
@artemp would there be any problem with doing data_type data {}; for all compilers/in all cases and not just when building with the clang analyzer?
data_type data {};
This PR adds
data
initializers wrapped in#ifdef __clang_analyzer__
to mute static analysis warnings from Xcode (10.2).This will significantly reduce the number of analysis warnings in
mapbox-gl-native
for iOS/macOS (see https://github.com/mapbox/mapbox-gl-native/issues/7668#issuecomment-482767630)./cc @tmpsantos @kkaefer