diff options
author | Joseph Heenan <joseph@emobix.co.uk> | 2014-10-02 20:52:16 +0200 |
---|---|---|
committer | Joseph Heenan <joseph@emobix.co.uk> | 2014-10-04 08:11:35 -0500 |
commit | 9b3186bf86e290f01e01b711ba4c047de4539428 (patch) | |
tree | 5559f2643ddc357d13fc379e6b82538052efe882 /platform/ios/MuPDF.xcodeproj/project.pbxproj | |
parent | aa35b1b812a53c3653b942ed0e4e89eac9a86bb0 (diff) | |
download | mupdf-9b3186bf86e290f01e01b711ba4c047de4539428.tar.xz |
iOS: Enable various warnings to match current best practice
Diffstat (limited to 'platform/ios/MuPDF.xcodeproj/project.pbxproj')
-rw-r--r-- | platform/ios/MuPDF.xcodeproj/project.pbxproj | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/ios/MuPDF.xcodeproj/project.pbxproj b/platform/ios/MuPDF.xcodeproj/project.pbxproj index 4a2322ec..0c254b12 100644 --- a/platform/ios/MuPDF.xcodeproj/project.pbxproj +++ b/platform/ios/MuPDF.xcodeproj/project.pbxproj @@ -509,11 +509,23 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CLANG_MODULES_AUTOLINK = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COMMAND_LINE_DEFINES = ""; COMMAND_LINE_FRAMEWORK_SEARCH_PATHS = ""; COMMAND_LINE_LINKER_FLAGS = ""; + ENABLE_STRICT_OBJC_MSGSEND = YES; FRAMEWORK_SEARCH_PATHS = "$(COMMAND_LINE_FRAMEWORKS_SEARCH_PATH)"; GCC_PREPROCESSOR_DEFINITIONS = "$(COMMAND_LINE_DEFINES)"; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 6.1; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = "$(COMMAND_LINE_LINKER_FLAGS)"; @@ -525,11 +537,23 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CLANG_MODULES_AUTOLINK = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COMMAND_LINE_DEFINES = ""; COMMAND_LINE_FRAMEWORK_SEARCH_PATHS = ""; COMMAND_LINE_LINKER_FLAGS = ""; + ENABLE_STRICT_OBJC_MSGSEND = YES; FRAMEWORK_SEARCH_PATHS = "$(COMMAND_LINE_FRAMEWORKS_SEARCH_PATH)"; GCC_PREPROCESSOR_DEFINITIONS = "$(COMMAND_LINE_DEFINES)"; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 6.1; OTHER_LDFLAGS = "$(COMMAND_LINE_LINKER_FLAGS)"; }; |