disable set but not used on code that can't be changed

This commit is contained in:
Matt Macy 2018-05-19 04:46:34 +00:00
parent 5072a5f465
commit e5ae3af78b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333848
4 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ CLANG_NO_IAS34= -no-integrated-as
.if ${COMPILER_VERSION} >= 40800
# Catch-all for all the things that are in our tree, but for which we're
# not yet ready for this compiler.
NO_WUNUSED_BUT_SET_VARIABLE = -Wno-unused-but-set-variable
CWARNEXTRA?= -Wno-error=address \
-Wno-error=aggressive-loop-optimizations \
-Wno-error=array-bounds \

View File

@ -19,3 +19,4 @@ SRCS += bxe.c \
CFLAGS += -I${BXE}
.include <bsd.kmod.mk>
CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE}

View File

@ -68,3 +68,4 @@ CWARNFLAGS.i915_gem_tiling.c= ${NO_WTAUTOLOGICAL_POINTER_COMPARE}
CWARNFLAGS.i915_gem_execbuffer.c= ${NO_WTAUTOLOGICAL_POINTER_COMPARE}
CWARNFLAGS.intel_display.c= ${NO_WTAUTOLOGICAL_POINTER_COMPARE}
CWARNFLAGS.intel_overlay.c= ${NO_WTAUTOLOGICAL_POINTER_COMPARE}
CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE}

View File

@ -118,3 +118,4 @@ CFLAGS+= -I${SRCTOP}/sys/dev/drm2/radeon
CWARNFLAGS.radeon_cp.c= -Wno-unused-value
CWARNFLAGS.r600_cp.c= -Wno-unused-value
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
CWARNFLAGS+= ${NO_WUNUSED_BUT_SET_VARIABLE}