From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 1 05:20:19 2012 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1DB93A7F for ; Sat, 1 Dec 2012 05:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 96C208FC13 for ; Sat, 1 Dec 2012 05:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qB15K0Pq043223 for ; Sat, 1 Dec 2012 05:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qB15K04k043222; Sat, 1 Dec 2012 05:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 1 Dec 2012 05:20:00 GMT Resent-Message-Id: <201212010520.qB15K04k043222@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7D1985C for ; Sat, 1 Dec 2012 05:12:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CFCED8FC18 for ; Sat, 1 Dec 2012 05:12:32 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qB15CWqG036668 for ; Sat, 1 Dec 2012 05:12:32 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qB15CWT0036667; Sat, 1 Dec 2012 05:12:32 GMT (envelope-from nobody) Message-Id: <201212010512.qB15CWT0036667@red.freebsd.org> Date: Sat, 1 Dec 2012 05:12:32 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/174027: [patch][mthca] Fix compilation with non-clang compiler X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2012 05:20:19 -0000 >Number: 174027 >Category: kern >Synopsis: [patch][mthca] Fix compilation with non-clang compiler >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 01 05:20:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 9.1-STABLE >Organization: EMC Isilon >Environment: FreeBSD bayonetta.local 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r240836M: Sat Sep 22 12:30:11 PDT 2012 gcooper@bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA amd64 >Description: I build on my host system with WITHOUT_CLANG, and I ran into some problems with pc98's LINT target on my workstation. >How-To-Repeat: make tinderbox -DMAKE_JUST_KERNELS -DWITHOUT_CLANG TARGETS=pc98 >Fix: Patch attached with submission follows: Index: sys/modules/mthca/Makefile =================================================================== --- sys/modules/mthca/Makefile (revision 242903) +++ sys/modules/mthca/Makefile (working copy) @@ -28,4 +28,4 @@ .include -CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions -Wno-switch -Wno-sometimes-uninitialized -Wno-conversion -Wno-initializer-overrides +CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions -Wno-switch ${NO_WSOMETIMES_UNINITIALIZED} -Wno-conversion ${NO_WINITIALIZER_OVERRIDES} Index: sys/conf/kern.mk =================================================================== --- sys/conf/kern.mk (revision 242903) +++ sys/conf/kern.mk (working copy) @@ -25,6 +25,7 @@ NO_WFORMAT_SECURITY= -Wno-format-security NO_WUNNEEDED_INTERNAL_DECL= -Wno-unneeded-internal-declaration NO_WSOMETIMES_UNINITIALIZED= -Wno-error-sometimes-uninitialized +NO_WINITIALIZER_OVERRIDES= -Wno-initializer-overrides # Several other warnings which might be useful in some cases, but not severe # enough to error out the whole kernel build. Display them anyway, so there is # some incentive to fix them eventually. >Release-Note: >Audit-Trail: >Unformatted: