Ver código fonte

Merge pull request #11 from ParsePlatform/nlutsenko.warnings

Enable static analyzer warnings for nonnull, floating point loop counter.
Nikita Lutsenko 9 anos atrás
pai
commit
f1dd6b9816
1 arquivos alterados com 4 adições e 0 exclusões
  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_DIRECT_OBJC_ISA_USAGE = YES_ERROR
 CLANG_WARN_OBJC_ROOT_CLASS = 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.
 // 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.
 // 'auto-import' - warns when an old-style hashed import could be replaced with modular import aka @import.