Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Warn about uninitialized variables on all configurations now that Deb…

…ug builds support it
  • Loading branch information...
commit d1ecf082ffce13b7501eee8a64f6fcaebe5ef2d4 1 parent b69d84b
Justin Spahr-Summers authored
3  Base/Common.xcconfig
@@ -100,6 +100,9 @@ GCC_WARN_SIGN_COMPARE = YES
100 100 // the format specifiers
101 101 GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
102 102
  103 +// Whether to warn about variables that are not initialized before being used
  104 +GCC_WARN_UNINITIALIZED_AUTOS = YES
  105 +
103 106 // Whether to warn about static functions that are unused
104 107 GCC_WARN_UNUSED_FUNCTION = YES
105 108
3  Base/Configurations/Release.xcconfig
@@ -18,9 +18,6 @@ GCC_OPTIMIZATION_LEVEL = s
18 18 // Preproccessor definitions to apply to each file compiled
19 19 GCC_PREPROCESSOR_DEFINITIONS = NDEBUG=1 NS_BLOCK_ASSERTIONS=1
20 20
21   -// Whether to warn about variables that are used without initialization
22   -GCC_WARN_UNINITIALIZED_AUTOS = YES
23   -
24 21 // Whether to enable link-time optimizations (such as inlining across translation
25 22 // units)
26 23 LLVM_LTO = NO

0 comments on commit d1ecf08

Please sign in to comment.
Something went wrong with that request. Please try again.