Module Name: src
Committed By: christos
Date: Fri Feb 3 23:39:26 UTC 2012
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
-Wold-style-definitions for i386 and amd64
To generate a diff of this commit:
cvs rdiff -u -r1.150 -r1.151 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.150 src/sys/conf/Makefile.kern.inc:1.151
--- src/sys/conf/Makefile.kern.inc:1.150 Mon Dec 19 09:06:17 2011
+++ src/sys/conf/Makefile.kern.inc Fri Feb 3 18:39:26 2012
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.150 2011/12/19 14:06:17 joerg Exp $
+# $NetBSD: Makefile.kern.inc,v 1.151 2012/02/03 23:39:26 christos Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -74,6 +74,9 @@ CWARNFLAGS+= -Wno-pointer-sign -Wno-attr
${MACHINE_ARCH} == "sparc64" || ${MACHINE} == "prep"
CWARNFLAGS+= -Wextra -Wno-unused-parameter
. endif
+. if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64"
+CWARNFLAGS+= -Wold-style-definition
+. 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.