Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/nvi Add missing break.



details:   https://anonhg.NetBSD.org/src/rev/1302a4853e02
branches:  trunk
changeset: 962518:1302a4853e02
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jul 24 08:37:59 2019 +0000

description:
Add missing break.

diffstat:

 external/bsd/nvi/dist/common/log.c    |  5 +++--
 external/bsd/nvi/dist/common/log1.c   |  5 +++--
 external/bsd/nvi/usr.bin/nvi/Makefile |  6 +-----
 3 files changed, 7 insertions(+), 9 deletions(-)

diffs (72 lines):

diff -r b8eaf23ccfc9 -r 1302a4853e02 external/bsd/nvi/dist/common/log.c
--- a/external/bsd/nvi/dist/common/log.c        Wed Jul 24 08:37:53 2019 +0000
+++ b/external/bsd/nvi/dist/common/log.c        Wed Jul 24 08:37:59 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: log.c,v 1.5 2018/06/16 21:00:12 kamil Exp $ */
+/*     $NetBSD: log.c,v 1.6 2019/07/24 08:37:59 rin Exp $ */
 /*-
  * Copyright (c) 1992, 1993, 1994
  *     The Regents of the University of California.  All rights reserved.
@@ -16,7 +16,7 @@
 static const char sccsid[] = "Id: log.c,v 10.26 2002/03/02 23:12:13 skimo Exp  (Berkeley) Date: 2002/03/02 23:12:13 ";
 #endif /* not lint */
 #else
-__RCSID("$NetBSD: log.c,v 1.5 2018/06/16 21:00:12 kamil Exp $");
+__RCSID("$NetBSD: log.c,v 1.6 2019/07/24 08:37:59 rin Exp $");
 #endif
 
 #include <sys/types.h>
@@ -620,6 +620,7 @@
                                sp->rptlchange = lno;
                                ++sp->rptlines[L_CHANGED];
                        }
+                       break;
                case LOG_MARK:
                        memmove(&lm, p + sizeof(u_char), sizeof(LMARK));
                        m.lno = lm.lno;
diff -r b8eaf23ccfc9 -r 1302a4853e02 external/bsd/nvi/dist/common/log1.c
--- a/external/bsd/nvi/dist/common/log1.c       Wed Jul 24 08:37:53 2019 +0000
+++ b/external/bsd/nvi/dist/common/log1.c       Wed Jul 24 08:37:59 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: log1.c,v 1.6 2018/06/25 18:36:36 kamil Exp $   */
+/*     $NetBSD: log1.c,v 1.7 2019/07/24 08:37:59 rin Exp $     */
 /*-
  * Copyright (c) 1992, 1993, 1994
  *     The Regents of the University of California.  All rights reserved.
@@ -16,7 +16,7 @@
 static const char sccsid[] = "Id: log.c,v 10.26 2002/03/02 23:12:13 skimo Exp  (Berkeley) Date: 2002/03/02 23:12:13 ";
 #endif /* not lint */
 #else
-__RCSID("$NetBSD: log1.c,v 1.6 2018/06/25 18:36:36 kamil Exp $");
+__RCSID("$NetBSD: log1.c,v 1.7 2019/07/24 08:37:59 rin Exp $");
 #endif
 
 #include <sys/types.h>
@@ -588,6 +588,7 @@
                                sp->rptlchange = lno;
                                ++sp->rptlines[L_CHANGED];
                        }
+                       break;
                case LOG_MARK:
                        memmove(&lm, p + sizeof(u_char), sizeof(LMARK));
                        m.lno = lm.lno;
diff -r b8eaf23ccfc9 -r 1302a4853e02 external/bsd/nvi/usr.bin/nvi/Makefile
--- a/external/bsd/nvi/usr.bin/nvi/Makefile     Wed Jul 24 08:37:53 2019 +0000
+++ b/external/bsd/nvi/usr.bin/nvi/Makefile     Wed Jul 24 08:37:59 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.18 2019/02/04 04:05:16 mrg Exp $
+#      $NetBSD: Makefile,v 1.19 2019/07/24 08:37:59 rin Exp $
 
 .include <bsd.own.mk>
 
@@ -18,10 +18,6 @@
 CWARNFLAGS.clang+=     -Wno-unsequenced
 .endif
 
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
-COPTS.log1.c+=         -Wno-error=implicit-fallthrough
-.endif
-
 CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I.
 CPPFLAGS+=-DGTAGS -DIMCTRL
 CPPFLAGS+=-DHAVE_OPENPTY -DHAVE_UTIL_H



Home | Main Index | Thread Index | Old Index