Module Name: src
Committed By: joerg
Date: Mon May 23 13:55:55 UTC 2011
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
Reorder flag order to not depend on -Wextra being applied before
-Wno-sign-compare
To generate a diff of this commit:
cvs rdiff -u -r1.135 -r1.136 src/sys/conf/Makefile.kern.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.135 src/sys/conf/Makefile.kern.inc:1.136
--- src/sys/conf/Makefile.kern.inc:1.135 Sun May 22 20:49:46 2011
+++ src/sys/conf/Makefile.kern.inc Mon May 23 13:55:55 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.135 2011/05/22 20:49:46 joerg Exp $
+# $NetBSD: Makefile.kern.inc,v 1.136 2011/05/23 13:55:55 joerg Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -71,9 +71,6 @@
CWARNFLAGS+= -Wswitch -Wshadow
CWARNFLAGS+= -Wcast-qual -Wwrite-strings
CWARNFLAGS+= -Wno-unreachable-code
-# Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3,
-# but our sources aren't up for it yet.
-CWARNFLAGS+= -Wno-sign-compare
. if (defined(HAVE_GCC) && ${HAVE_GCC} > 3) || defined(HAVE_PCC)
CWARNFLAGS+= -Wno-pointer-sign -Wno-attributes
. if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
@@ -81,6 +78,9 @@
CWARNFLAGS+= -Wextra -Wno-unused-parameter
. endif
. endif
+# Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3,
+# but our sources aren't up for it yet.
+CWARNFLAGS+= -Wno-sign-compare
.endif
CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss