Source-Changes-HG archive

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

[src/trunk]: src/share/mk use -Wno-traditional only for GCC rather than !CLANG



details:   https://anonhg.NetBSD.org/src/rev/accc2c35c7bc
branches:  trunk
changeset: 329507:accc2c35c7bc
user:      plunky <plunky%NetBSD.org@localhost>
date:      Tue May 27 16:16:01 2014 +0000

description:
use -Wno-traditional only for GCC rather than !CLANG

diffstat:

 share/mk/bsd.sys.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2febff5809ce -r accc2c35c7bc share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue May 27 16:14:03 2014 +0000
+++ b/share/mk/bsd.sys.mk       Tue May 27 16:16:01 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.238 2014/05/27 16:14:03 plunky Exp $
+#      $NetBSD: bsd.sys.mk,v 1.239 2014/05/27 16:16:01 plunky Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -37,7 +37,7 @@
 # differently in traditional and ansi environments' which is the warning
 # we wanted, and now we don't get anymore.
 CFLAGS+=       -Wno-sign-compare
-CFLAGS+=       ${${ACTIVE_CC} != "clang":? -Wno-traditional :}
+CFLAGS+=       ${${ACTIVE_CC} == "gcc" :? -Wno-traditional :}
 .if !defined(NOGCCERROR)
 # Set assembler warnings to be fatal
 CFLAGS+=       -Wa,--fatal-warnings



Home | Main Index | Thread Index | Old Index