Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf -Wold-style-definitions for i386 and amd64



details:   https://anonhg.NetBSD.org/src/rev/a9e3ede86ca3
branches:  trunk
changeset: 773499:a9e3ede86ca3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 03 23:39:26 2012 +0000

description:
-Wold-style-definitions for i386 and amd64

diffstat:

 sys/conf/Makefile.kern.inc |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 18b2b5e5db9e -r a9e3ede86ca3 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Fri Feb 03 23:38:07 2012 +0000
+++ b/sys/conf/Makefile.kern.inc        Fri Feb 03 23:39:26 2012 +0000
@@ -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 @@
        ${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.



Home | Main Index | Thread Index | Old Index