Source-Changes-HG archive

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

[src/trunk]: src/games/backgammon/common_source no longer need -Wno-error=imp...



details:   https://anonhg.NetBSD.org/src/rev/d6c400fb34d2
branches:  trunk
changeset: 961229:d6c400fb34d2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Apr 13 02:11:39 2021 +0000

description:
no longer need -Wno-error=implicit-fallthrough.
don't provide common symbols that are in libterminfo now days.

diffstat:

 games/backgammon/common_source/Makefile |  9 +--------
 games/backgammon/common_source/fancy.c  |  8 ++++++--
 2 files changed, 7 insertions(+), 10 deletions(-)

diffs (60 lines):

diff -r ea390d0275f1 -r d6c400fb34d2 games/backgammon/common_source/Makefile
--- a/games/backgammon/common_source/Makefile   Tue Apr 13 02:07:35 2021 +0000
+++ b/games/backgammon/common_source/Makefile   Tue Apr 13 02:11:39 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2019/09/29 23:44:59 mrg Exp $
+#      $NetBSD: Makefile,v 1.12 2021/04/13 02:11:39 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -6,11 +6,4 @@
 SRCS=          allow.c board.c check.c fancy.c init.c odds.c \
                one.c save.c subs.c table.c
 
-.include <bsd.own.mk>
-
-# Has fallthru comment that is missed
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
-COPTS.check.c+=        -Wno-error=implicit-fallthrough
-.endif
-
 .include <bsd.lib.mk>
diff -r ea390d0275f1 -r d6c400fb34d2 games/backgammon/common_source/fancy.c
--- a/games/backgammon/common_source/fancy.c    Tue Apr 13 02:07:35 2021 +0000
+++ b/games/backgammon/common_source/fancy.c    Tue Apr 13 02:11:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fancy.c,v 1.15 2020/04/22 23:36:26 joerg Exp $ */
+/*     $NetBSD: fancy.c,v 1.16 2021/04/13 02:11:39 mrg Exp $   */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)fancy.c    8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: fancy.c,v 1.15 2020/04/22 23:36:26 joerg Exp $");
+__RCSID("$NetBSD: fancy.c,v 1.16 2021/04/13 02:11:39 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -52,8 +52,10 @@
  *
  * XXX: rewrite this crap using curses.
  */
+#if 0
 char    PC;                    /* padding character */
 char   *BC;                    /* backspace sequence */
+#endif
 char   *CD;                    /* clear to end of screen sequence */
 char   *CE;                    /* clear to end of line sequence */
 char   *CL;                    /* clear screen sequence */
@@ -62,7 +64,9 @@
 char   *MC;                    /* column cursor movement map */
 char   *ML;                    /* row cursor movement map */
 char   *ND;                    /* forward cursor sequence */
+#if 0
 char   *UP;                    /* up cursor sequence */
+#endif
 
 static int lHO;                        /* length of HO */
 static int lBC;                        /* length of BC */



Home | Main Index | Thread Index | Old Index