Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/stat rework the previous to only apply if !HOSTPROG



details:   https://anonhg.NetBSD.org/src/rev/4d175706f368
branches:  trunk
changeset: 996552:4d175706f368
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Feb 04 10:03:16 2019 +0000

description:
rework the previous to only apply if !HOSTPROG

diffstat:

 usr.bin/stat/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 8065ef033f24 -r 4d175706f368 usr.bin/stat/Makefile
--- a/usr.bin/stat/Makefile     Mon Feb 04 09:58:23 2019 +0000
+++ b/usr.bin/stat/Makefile     Mon Feb 04 10:03:16 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2019/02/04 09:51:47 mrg Exp $
+#      $NetBSD: Makefile,v 1.10 2019/02/04 10:03:16 mrg Exp $
 
 PROG=  stat
 
@@ -10,7 +10,7 @@
 .include <bsd.own.mk>
 
 # Has fallthru comment that is missed
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+.if !defined(HOSTPROG) && defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
 COPTS.stat.c+= -Wno-error=implicit-fallthrough
 .endif
 



Home | Main Index | Thread Index | Old Index