Peter Hosey avatar Peter Hosey committed 2aaa3cb

Speaking of which, here's the warnings file.

This is https://github.com/boredzo/Warnings-xcconfig revision abacdd3b32.

Comments (0)

Files changed (2)

PRHTaskTest/PRHTaskTest.xcodeproj/project.pbxproj

 		31068CF41447F01C00DFAECC /* PRHTaskTest.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = PRHTaskTest.1; sourceTree = "<group>"; };
 		31068CFB1447F02600DFAECC /* PRHTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PRHTask.h; path = ../../PRHTask.h; sourceTree = "<group>"; };
 		31068CFC1447F02600DFAECC /* PRHTask.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PRHTask.m; path = ../../PRHTask.m; sourceTree = "<group>"; };
+		31C56F2014AAE050006F476B /* Warnings.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
 			isa = PBXGroup;
 			children = (
 				31068CEF1447F01C00DFAECC /* PRHTaskTest */,
+				31C56F2014AAE050006F476B /* Warnings.xcconfig */,
 				31068CEC1447F01C00DFAECC /* Frameworks */,
 				31068CEA1447F01C00DFAECC /* Products */,
 			);
 /* Begin XCBuildConfiguration section */
 		31068CF61447F01C00DFAECC /* Debug */ = {
 			isa = XCBuildConfiguration;
+			baseConfigurationReference = 31C56F2014AAE050006F476B /* Warnings.xcconfig */;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
 				ARCHS = "$(ARCHS_STANDARD_64_BIT)";
 		};
 		31068CF71447F01C00DFAECC /* Release */ = {
 			isa = XCBuildConfiguration;
+			baseConfigurationReference = 31C56F2014AAE050006F476B /* Warnings.xcconfig */;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
 				ARCHS = "$(ARCHS_STANDARD_64_BIT)";

PRHTaskTest/Warnings.xcconfig

+//
+//  MoreWarnings.xcconfig
+//
+//  Created by Steven Fisher:
+//      http://tewha.net/2010/11/xcode-warnings/
+//  See also:
+//      http://boredzo.org/blog/archives/2009-11-07/warnings
+//
+
+GCC_WARN_CHECK_SWITCH_STATEMENTS = YES
+GCC_WARN_SHADOW = YES
+GCC_WARN_64_TO_32_BIT_CONVERSION = YES
+GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
+GCC_WARN_ABOUT_RETURN_TYPE = YES
+GCC_WARN_MISSING_PARENTHESES = YES
+GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
+GCC_WARN_ABOUT_MISSING_NEWLINE = YES
+GCC_WARN_SIGN_COMPARE = YES
+GCC_WARN_UNDECLARED_SELECTOR = YES
+GCC_WARN_UNUSED_FUNCTION = YES
+GCC_WARN_UNUSED_LABEL = YES
+GCC_WARN_UNUSED_VALUE = YES
+GCC_WARN_UNUSED_VARIABLE = YES
+GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
+GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
+GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
+GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES
+GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES
+GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES
+CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
+CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES
+CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
+OTHER_CFLAGS = -Wextra -Wno-unused-parameter
+GCC_TREAT_WARNINGS_AS_ERRORS = YES
+RUN_CLANG_STATIC_ANALYZER = YES
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.