Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add new recommended warnings from the latest LLVM and Xcode 4.6

  • Loading branch information...
commit 7c91c220d7aae03960f99345226b1a39f68d6356 1 parent 83f53f7
@alanjrogers alanjrogers authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 Base/Common.xcconfig
View
15 Base/Common.xcconfig
@@ -118,6 +118,21 @@ GCC_WARN_UNUSED_VARIABLE = YES
// Whether to run the static analyzer with every build
RUN_CLANG_STATIC_ANALYZER = YES
+// Warn about implicit conversions of constant values that cause the constant value to change,
+// either through a loss of precision, or entirely in its meaning.
+CLANG_WARN_CONSTANT_CONVERSION = YES;
+
+// Warn about implicit conversions between different kinds of enum values.
+// For example, this can catch issues when using the wrong enum flag as an argument to a function or method
+CLANG_WARN_ENUM_CONVERSION = YES;
+
+// Warn about implicit conversions between pointers and integers.
+// For example, this can catch issues when one incorrectly intermixes using NSNumber*'s and raw integers.
+CLANG_WARN_INT_CONVERSION = YES;
+
+// Warn about declaring the same method more than once within the same @interface.
+CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+
// Whether to run unit tests with every build
TEST_AFTER_BUILD = YES
Please sign in to comment.
Something went wrong with that request. Please try again.