Sfoglia il codice sorgente

Merge pull request #11 from ParsePlatform/nlutsenko.warnings

Enable static analyzer warnings for nonnull, floating point loop counter.
Nikita Lutsenko 9 anni fa
parent
commit
f1dd6b9816
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      Configurations/Warnings.xcconfig

+ 4 - 0
Configurations/Warnings.xcconfig

@@ -42,6 +42,10 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR
 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR
 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
 
+// Static Analyzer Warnings
+CLANG_ANALYZER_NONNULL = YES
+CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES
+
 //
 // Extra warnings, not available directly in build settings.
 // 'auto-import' - warns when an old-style hashed import could be replaced with modular import aka @import.