Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/pkg_install show_version() doesn't return, but ...
details: https://anonhg.NetBSD.org/src/rev/9c987d89d747
branches: trunk
changeset: 448582:9c987d89d747
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Feb 05 11:37:18 2019 +0000
description:
show_version() doesn't return, but fallthru checker doesn't know
and coplains. disable the error.
diffstat:
external/bsd/pkg_install/Makefile.inc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r e70d053a3c53 -r 9c987d89d747 external/bsd/pkg_install/Makefile.inc
--- a/external/bsd/pkg_install/Makefile.inc Tue Feb 05 11:33:13 2019 +0000
+++ b/external/bsd/pkg_install/Makefile.inc Tue Feb 05 11:37:18 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.4 2011/09/16 16:41:20 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.5 2019/02/05 11:37:18 mrg Exp $
DIST= ${NETBSDSRCDIR}/external/bsd/pkg_install/dist
@@ -11,3 +11,9 @@
WARNS= 4
CWARNFLAGS+= -Wno-missing-noreturn
+
+# show_version() does not return
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.main.c+= -Wno-error=implicit-fallthrough
+COPTS.pkg_delete.c+= -Wno-error=implicit-fallthrough
+.endif
Home |
Main Index |
Thread Index |
Old Index