Skip to content

Commit

Permalink
Merge pull request #3595 from andron/stylish-warning-flags
Browse files Browse the repository at this point in the history
Make warning flags in src/posix.mak appear on one line each
  • Loading branch information
WalterBright committed May 28, 2014
2 parents e350446 + 5d57fa8 commit e01af42
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions src/posix.mak
Expand Up @@ -41,21 +41,44 @@ GIT=git

# Compiler Warnings
ifdef ENABLE_WARNINGS
WARNINGS := -Wall -Wextra -Wno-deprecated -Wno-strict-aliasing -Wno-empty-body \
-Wno-unused-parameter -Wno-unused-value -Wno-unused-variable -Wno-unused-function -Wno-return-type \
-Wno-unused-label -Wno-unknown-pragmas -Wno-sign-compare \
-Wno-overloaded-virtual -Wno-missing-braces \
-Wno-missing-field-initializers -Wno-parentheses -Wno-format -Wno-attributes \
-Wno-char-subscripts -Wno-reorder \
-Wno-switch -Wno-type-limits
WARNINGS := -Wall -Wextra \
-Wno-attributes \
-Wno-char-subscripts \
-Wno-deprecated \
-Wno-empty-body \
-Wno-format \
-Wno-missing-braces \
-Wno-missing-field-initializers \
-Wno-overloaded-virtual \
-Wno-parentheses \
-Wno-reorder \
-Wno-return-type \
-Wno-sign-compare \
-Wno-strict-aliasing \
-Wno-switch \
-Wno-type-limits \
-Wno-unknown-pragmas \
-Wno-unused-function \
-Wno-unused-label \
-Wno-unused-parameter \
-Wno-unused-value \
-Wno-unused-variable
# GCC Specific
ifeq ($(HOST_CC), g++)
WARNINGS := $(WARNINGS) -Wno-logical-op -Wno-narrowing -Wno-unused-but-set-variable -Wno-uninitialized
WARNINGS := $(WARNINGS) \
-Wno-logical-op \
-Wno-narrowing \
-Wno-unused-but-set-variable \
-Wno-uninitialized
endif
# Clangn Specific
ifeq ($(HOST_CC), clang++)
WARNINGS := $(WARNINGS) -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare \
-Wno-constant-logical-operand -Wno-self-assign -Wno-self-assign # -Wno-sometimes-uninitialized
WARNINGS := $(WARNINGS) \
-Wno-tautological-constant-out-of-range-compare \
-Wno-tautological-compare \
-Wno-constant-logical-operand \
-Wno-self-assign -Wno-self-assign
# -Wno-sometimes-uninitialized
endif
else
# Default Warnings
Expand Down

0 comments on commit e01af42

Please sign in to comment.