Permalink
Browse files

All warnings enabled.

  • Loading branch information...
1 parent 45bd926 commit ca5e581f69c4dc554a2b0067838652138403a0f1 @kstenerud committed Nov 7, 2011
Showing with 14 additions and 0 deletions.
  1. +8 −0 KSJSON.xcodeproj/project.pbxproj
  2. +1 −0 KSJSON/KSJSON.m
  3. +5 −0 README.md
@@ -295,6 +295,9 @@
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
+ GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
@@ -315,6 +318,7 @@
GCC_WARN_UNKNOWN_PRAGMAS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_LABEL = YES;
+ GCC_WARN_UNUSED_PARAMETER = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
SDKROOT = iphoneos;
@@ -334,6 +338,9 @@
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
+ GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
@@ -354,6 +361,7 @@
GCC_WARN_UNKNOWN_PRAGMAS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_LABEL = YES;
+ GCC_WARN_UNUSED_PARAMETER = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
SDKROOT = iphoneos;
View
@@ -1361,6 +1361,7 @@ static bool serializeNumber(KSJSONSerializeContext* context,
*/
static bool serializeNull(KSJSONSerializeContext* context, CFTypeRef object)
{
+ #pragma unused(object)
serializeChars(context, g_null, 4);
return true;
}
View
@@ -30,6 +30,11 @@ with another library.
KSJSON includes 70 unit tests, which have 90% code coverage.
+### It's Clean!
+
+KSJSON compiles cleanly with ALL warnings enabled (including pedantic).
+
+
### It's Small!
The armv7 object code for KSJSON weighs in at 42 kilobytes.

0 comments on commit ca5e581

Please sign in to comment.