Module Name:    src
Committed By:   mrg
Date:           Mon Feb  4 10:03:16 UTC 2019

Modified Files:
        src/usr.bin/stat: Makefile

Log Message:
rework the previous to only apply if !HOSTPROG


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/stat/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/stat/Makefile
diff -u src/usr.bin/stat/Makefile:1.9 src/usr.bin/stat/Makefile:1.10
--- src/usr.bin/stat/Makefile:1.9	Mon Feb  4 09:51:47 2019
+++ src/usr.bin/stat/Makefile	Mon Feb  4 10:03:16 2019
@@ -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 @@ MLINKS=	stat.1 readlink.1
 .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
 

Reply via email to