Skip to content

Enable all warnings#103

Merged
raulriera merged 1 commit intomasterfrom
compiler-warnings
Jul 12, 2018
Merged

Enable all warnings#103
raulriera merged 1 commit intomasterfrom
compiler-warnings

Conversation

@raulriera
Copy link
Copy Markdown
Contributor

@raulriera raulriera commented Jul 12, 2018

What

Taken a page out of the Webkit book, turning all warnings to yes.

@raulriera raulriera requested review from Caiopia, g-Off and krbarnes July 12, 2018 20:17
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_CXX0X_EXTENSIONS = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean to downgrade this one?

CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also changed to just a warning.

MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
Copy link
Copy Markdown
Contributor

@krbarnes krbarnes Jul 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this negates my other comments since this project is 100% Swift. The LLVM warnings are not Swift exclusive though. Some C, Obj-C warnings that were errors may not be now.
Carry on.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah.. GCC_TREAT_WARNINGS_AS_ERRORS=YES probably catches those...
Stupid Xcode project files.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I also flipped those... I can revert the changes to the manually error ones just in case tho

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah... I think it's fine. This project should never have anything but Swift in it anyway.

@raulriera raulriera merged commit 9d67715 into master Jul 12, 2018
@raulriera raulriera deleted the compiler-warnings branch July 12, 2018 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants