Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump Make rump compile things with -std=gnu99 like the k...
details: https://anonhg.NetBSD.org/src/rev/34b3dcbff870
branches: trunk
changeset: 764864:34b3dcbff870
user: matt <matt%NetBSD.org@localhost>
date: Tue May 10 00:33:58 2011 +0000
description:
Make rump compile things with -std=gnu99 like the kernel and modules.
diffstat:
sys/rump/Makefile.rump | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r b8b33ec6fe13 -r 34b3dcbff870 sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump Mon May 09 19:15:28 2011 +0000
+++ b/sys/rump/Makefile.rump Tue May 10 00:33:58 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index