Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on some more warnings by default #134

Merged
merged 1 commit into from
Mar 27, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions defaults/liftoffrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@ warnings:
- GCC_WARN_ABOUT_MISSING_NEWLINE
- GCC_WARN_UNDECLARED_SELECTOR
- GCC_WARN_TYPECHECK_CALLS_TO_PRINTF
- GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
- CLANG_WARN_IMPLICIT_SIGN_CONVERSION
- CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
- CLANG_WARN_EMPTY_BODY
- CLANG_WARN_ENUM_CONVERSION
- CLANG_WARN_INT_CONVERSION
- CLANG_WARN_CONSTANT_CONVERSION

application_target_groups:
- <%= project_name %>:
Expand Down
26 changes: 26 additions & 0 deletions man/liftoffrc.5
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,38 @@ and
etc., to make sure that the arguments supplied have types appropriate to the
format string specified, and that the conversions specified in the format
string make sense.
.It Ic GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS
Warn about the use of deprecated functions, variables, and types (as indicated
by the
.Ic deprecated
attribute).
.It Ic CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATION
Warn if an Objective-C class either subclasses a deprecated class or overrides
a method that has been marked deprecated.
.It Ic CLANG_WARN_OBJC_IMPLICIT_RETAIN_SEL
Warn about implicit retains of 'self' within blocks, which can create a
retain-cycle.
.It Ic CLANG_WARN_IMPLICIT_SIGN_CONVERSION
Warn about implicit integer conversions that change the signedness of an
integer value.
.It Ic CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
Warn about various implicit conversions that can lose information or are
otherwise suspicious.
.It Ic CLANG_WARN_EMPTY_BODY
Warn about loop bodies that are suspiciously empty.
.It Ic CLANG_WARN_ENUM_CONVERSION
Warn about implicit conversions between different kinds of enum values. For
example, this can catch issues when using the wrong enum flag as an argument to
a function or method.
.It Ic CLANG_WARN_INT_CONVERSION
Warn about implicit conversions between pointers and integers. For example,
this can catch issues when one incorrectly intermixes using
.Ic NSNumber*
and raw integers.
.It Ic CLANG_WARN_CONSTANT_CONVERSION
Warn about implicit conversions of constant values that cause the constant
value to change, either through a loss of precision, or entirely in its
meaning.
.El
.
.Sh APPLICATION GROUPS
Expand Down