Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: remove unused message about nonpor...



details:   https://anonhg.NetBSD.org/src/rev/6d60b0184b43
branches:  trunk
changeset: 985478:6d60b0184b43
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Aug 27 20:19:45 2021 +0000

description:
lint: remove unused message about nonportable character escape

It has not been used since at least 2001.

diffstat:

 tests/usr.bin/xlint/lint1/msg_078.c   |  3 ++-
 tests/usr.bin/xlint/lint1/msg_078.exp |  2 +-
 usr.bin/xlint/lint1/err.c             |  6 +++---
 3 files changed, 6 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 0afa25d2bdbb -r 6d60b0184b43 tests/usr.bin/xlint/lint1/msg_078.c
--- a/tests/usr.bin/xlint/lint1/msg_078.c       Fri Aug 27 20:16:50 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_078.c       Fri Aug 27 20:19:45 2021 +0000
@@ -1,7 +1,8 @@
-/*     $NetBSD: msg_078.c,v 1.3 2021/08/27 20:16:50 rillig Exp $       */
+/*     $NetBSD: msg_078.c,v 1.4 2021/08/27 20:19:45 rillig Exp $       */
 # 3 "msg_078.c"
 
 // Test for message: nonportable character escape [78]
+/* This message is not used. */
 
 char either_255_or_minus_1 = '\377';
 /* expect+1: warning: dubious escape \y [79] */
diff -r 0afa25d2bdbb -r 6d60b0184b43 tests/usr.bin/xlint/lint1/msg_078.exp
--- a/tests/usr.bin/xlint/lint1/msg_078.exp     Fri Aug 27 20:16:50 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_078.exp     Fri Aug 27 20:19:45 2021 +0000
@@ -1,1 +1,1 @@
-msg_078.c(8): warning: dubious escape \y [79]
+msg_078.c(9): warning: dubious escape \y [79]
diff -r 0afa25d2bdbb -r 6d60b0184b43 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Fri Aug 27 20:16:50 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Fri Aug 27 20:19:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.c,v 1.140 2021/08/27 19:50:44 rillig Exp $ */
+/*     $NetBSD: err.c,v 1.141 2021/08/27 20:19:45 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.140 2021/08/27 19:50:44 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.141 2021/08/27 20:19:45 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -132,7 +132,7 @@
        "overflow in hex escape",                                     /* 75 */
        "character escape does not fit in character",                 /* 76 */
        "bad octal digit %c",                                         /* 77 */
-       "nonportable character escape",                               /* 78 */
+       "",                     /* unused */                          /* 78 */
        "dubious escape \\%c",                                        /* 79 */
        "dubious escape \\%o",                                        /* 80 */
        "\\a undefined in traditional C",                             /* 81 */



Home | Main Index | Thread Index | Old Index