Module Name: src
Committed By: matt
Date: Tue May 10 00:33:58 UTC 2011
Modified Files:
src/sys/rump: Makefile.rump
Log Message:
Make rump compile things with -std=gnu99 like the kernel and modules.
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/rump/Makefile.rump
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/Makefile.rump
diff -u src/sys/rump/Makefile.rump:1.60 src/sys/rump/Makefile.rump:1.61
--- src/sys/rump/Makefile.rump:1.60 Tue Feb 1 01:15:51 2011
+++ src/sys/rump/Makefile.rump Tue May 10 00:33:58 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.rump,v 1.60 2011/02/01 01:15:51 matt Exp $
+# $NetBSD: Makefile.rump,v 1.61 2011/05/10 00:33:58 matt Exp $
#
WARNS?= 3 # XXX: src/sys won't compile with -Wsign-compare yet
@@ -16,6 +16,11 @@
.endif
CFLAGS+= -ffreestanding -fno-strict-aliasing
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 3
+CFLAGS+= -Wsign-compare
+CFLAGS+= -Wno-pointer-sign -Wno-attributes
+CFLAGS+= -std=gnu99
+.endif
CWARNFLAGS+= -Wno-format-zero-length -Wno-pointer-sign
CPPFLAGS+= -D_KERNEL -DMULTIPROCESSOR -D_MODULE -DMODULAR
CPPFLAGS+= -DMAXUSERS=32