kern/174027: [patch][mthca] Fix compilation with non-clang compiler
Garrett Cooper
yanegomi at gmail.com
Sat Dec 1 05:20:19 UTC 2012
>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 at 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 <bsd.kmod.mk>
-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:
More information about the freebsd-bugs
mailing list