Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2018 04:46:35 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333848 - in head/sys: conf modules/bxe modules/drm2/i915kms modules/drm2/radeonkms
Message-ID:  <201805190446.w4J4kZ3q042721@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Sat May 19 04:46:34 2018
New Revision: 333848
URL: https://svnweb.freebsd.org/changeset/base/333848

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

Modified:
  head/sys/conf/kern.mk
  head/sys/modules/bxe/Makefile
  head/sys/modules/drm2/i915kms/Makefile
  head/sys/modules/drm2/radeonkms/Makefile

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Sat May 19 04:43:49 2018	(r333847)
+++ head/sys/conf/kern.mk	Sat May 19 04:46:34 2018	(r333848)
@@ -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				\

Modified: head/sys/modules/bxe/Makefile
==============================================================================
--- head/sys/modules/bxe/Makefile	Sat May 19 04:43:49 2018	(r333847)
+++ head/sys/modules/bxe/Makefile	Sat May 19 04:46:34 2018	(r333848)
@@ -19,3 +19,4 @@ SRCS	+= bxe.c               \
 CFLAGS += -I${BXE}
 
 .include <bsd.kmod.mk>
+CWARNFLAGS+=	${NO_WUNUSED_BUT_SET_VARIABLE}

Modified: head/sys/modules/drm2/i915kms/Makefile
==============================================================================
--- head/sys/modules/drm2/i915kms/Makefile	Sat May 19 04:43:49 2018	(r333847)
+++ head/sys/modules/drm2/i915kms/Makefile	Sat May 19 04:46:34 2018	(r333848)
@@ -68,3 +68,4 @@ CWARNFLAGS.i915_gem_tiling.c=	${NO_WTAUTOLOGICAL_POINT
 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}

Modified: head/sys/modules/drm2/radeonkms/Makefile
==============================================================================
--- head/sys/modules/drm2/radeonkms/Makefile	Sat May 19 04:43:49 2018	(r333847)
+++ head/sys/modules/drm2/radeonkms/Makefile	Sat May 19 04:46:34 2018	(r333848)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805190446.w4J4kZ3q042721>