sys: Enable -Wunused-but-set-variable for GCC.
It has been enabled for clang for a while now. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39358
This commit is contained in:
parent
8e9db62e74
commit
3b3762c34e
@ -74,8 +74,7 @@ CWARNEXTRA?= -Wno-error=address \
|
|||||||
-Wno-error=sequence-point \
|
-Wno-error=sequence-point \
|
||||||
-Wno-error=shift-overflow \
|
-Wno-error=shift-overflow \
|
||||||
-Wno-error=tautological-compare \
|
-Wno-error=tautological-compare \
|
||||||
-Wno-error=unused-function \
|
-Wno-error=unused-function
|
||||||
-Wno-unused-but-set-variable
|
|
||||||
.if ${COMPILER_VERSION} >= 70100
|
.if ${COMPILER_VERSION} >= 70100
|
||||||
CWARNEXTRA+= -Wno-error=stringop-overflow
|
CWARNEXTRA+= -Wno-error=stringop-overflow
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user