From owner-svn-src-all@FreeBSD.ORG Sun Oct 28 02:15:36 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C32C07FF; Sun, 28 Oct 2012 02:15:36 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 90C1C8FC14; Sun, 28 Oct 2012 02:15:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9S2Fax8007460; Sun, 28 Oct 2012 02:15:36 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9S2Fajw007456; Sun, 28 Oct 2012 02:15:36 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201210280215.q9S2Fajw007456@svn.freebsd.org> From: Nathan Whitehorn Date: Sun, 28 Oct 2012 02:15:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242203 - in head/sys/modules/drm: r128 radeon via X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 02:15:36 -0000 Author: nwhitehorn Date: Sun Oct 28 02:15:35 2012 New Revision: 242203 URL: http://svn.freebsd.org/changeset/base/242203 Log: Extend dim's hack from r228978: not only clang but gcc on non-x86 platforms warns about unused variables in this code, so always add -Wno-unused to the warning flags. Why gcc on x86 *doesn't* warn about this, I will never know. The code itself should probably be fixed at some point. Modified: head/sys/modules/drm/r128/Makefile head/sys/modules/drm/radeon/Makefile head/sys/modules/drm/via/Makefile Modified: head/sys/modules/drm/r128/Makefile ============================================================================== --- head/sys/modules/drm/r128/Makefile Sat Oct 27 23:42:41 2012 (r242202) +++ head/sys/modules/drm/r128/Makefile Sun Oct 28 02:15:35 2012 (r242203) @@ -7,6 +7,6 @@ SRCS +=device_if.h bus_if.h pci_if.h opt .include -CWARNFLAGS.r128_cce.c= ${NO_WUNUSED_VALUE} ${NO_WCONSTANT_CONVERSION} -CWARNFLAGS.r128_state.c= ${NO_WUNUSED_VALUE} +CWARNFLAGS.r128_cce.c= -Wno-unused ${NO_WCONSTANT_CONVERSION} +CWARNFLAGS.r128_state.c= -Wno-unused CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} Modified: head/sys/modules/drm/radeon/Makefile ============================================================================== --- head/sys/modules/drm/radeon/Makefile Sat Oct 27 23:42:41 2012 (r242202) +++ head/sys/modules/drm/radeon/Makefile Sun Oct 28 02:15:35 2012 (r242203) @@ -8,6 +8,6 @@ SRCS +=device_if.h bus_if.h pci_if.h opt .include -CWARNFLAGS.r600_cp.c= ${NO_WUNUSED_VALUE} ${NO_WCONSTANT_CONVERSION} -CWARNFLAGS.radeon_cp.c= ${NO_WUNUSED_VALUE} ${NO_WCONSTANT_CONVERSION} +CWARNFLAGS.r600_cp.c= -Wno-unused ${NO_WCONSTANT_CONVERSION} +CWARNFLAGS.radeon_cp.c= -Wno-unused ${NO_WCONSTANT_CONVERSION} CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} Modified: head/sys/modules/drm/via/Makefile ============================================================================== --- head/sys/modules/drm/via/Makefile Sat Oct 27 23:42:41 2012 (r242202) +++ head/sys/modules/drm/via/Makefile Sun Oct 28 02:15:35 2012 (r242203) @@ -22,6 +22,6 @@ opt_drm.h: .include -CWARNFLAGS.via_dma.c= ${NO_WUNUSED_VALUE} -CWARNFLAGS.via_dmablit.c= ${NO_WUNUSED_VALUE} +CWARNFLAGS.via_dma.c= -Wno-unused-value +CWARNFLAGS.via_dmablit.c= -Wno-unused-value CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}