Fix style.

This commit is contained in:
Ruslan Bukin 2016-07-24 18:04:12 +00:00
parent c072301617
commit 8500b15f9f
2 changed files with 21 additions and 3 deletions

View File

@ -111,12 +111,30 @@ CWARNFLAGS+= -Wno-format
# GCC 5.2.0
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 50200
CWARNFLAGS+= -Wno-error=unused-function -Wno-error=enum-compare -Wno-error=logical-not-parentheses -Wno-error=bool-compare -Wno-error=uninitialized -Wno-error=array-bounds -Wno-error=clobbered -Wno-error=cast-align -Wno-error=extra -Wno-error=attributes -Wno-error=inline -Wno-error=unused-but-set-variable -Wno-error=unused-value -Wno-error=strict-aliasing -Wno-error=address
CWARNFLAGS+= -Wno-error=address \
-Wno-error=array-bounds \
-Wno-error=attributes \
-Wno-error=bool-compare \
-Wno-error=cast-align \
-Wno-error=clobbered \
-Wno-error=enum-compare \
-Wno-error=extra \
-Wno-error=inline \
-Wno-error=logical-not-parentheses \
-Wno-error=strict-aliasing \
-Wno-error=uninitialized \
-Wno-error=unused-but-set-variable \
-Wno-error=unused-function \
-Wno-error=unused-value
.endif
# GCC 6.1.0
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100
CWARNFLAGS+= -Wno-error=unused-const-variable= -Wno-error=nonnull-compare -Wno-error=shift-negative-value -Wno-error=misleading-indentation -Wno-error=tautological-compare
CWARNFLAGS+= -Wno-error=misleading-indentation \
-Wno-error=nonnull-compare \
-Wno-error=shift-negative-value \
-Wno-error=tautological-compare \
-Wno-error=unused-const-variable
.endif
# How to handle FreeBSD custom printf format specifiers.

View File

@ -51,7 +51,7 @@ CWARNEXTRA?= -Wno-error=inline -Wno-error=enum-compare -Wno-error=unused-but-set
-Wno-error=cast-qual -Wno-error=sequence-point -Wno-error=attributes \
-Wno-error=strict-overflow -Wno-error=overflow
.if ${COMPILER_VERSION} >= 60100
CWARNEXTRA+= -Wno-error=nonnull-compare -Wno-error=shift-overflow=
CWARNEXTRA+= -Wno-error=nonnull-compare -Wno-error=shift-overflow
.endif
.else
# For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars.