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: rename message 340 to talk about "...



details:   https://anonhg.NetBSD.org/src/rev/d3905c371166
branches:  trunk
changeset: 984380:d3905c371166
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Jul 05 19:53:43 2021 +0000

description:
lint: rename message 340 to talk about "GCC extension", not "GNU"

diffstat:

 tests/usr.bin/xlint/lint1/msg_340.c   |  6 +++---
 tests/usr.bin/xlint/lint1/msg_340.exp |  2 +-
 usr.bin/xlint/lint1/cgram.y           |  6 +++---
 usr.bin/xlint/lint1/err.c             |  6 +++---
 4 files changed, 10 insertions(+), 10 deletions(-)

diffs (78 lines):

diff -r ddd50e970ae4 -r d3905c371166 tests/usr.bin/xlint/lint1/msg_340.c
--- a/tests/usr.bin/xlint/lint1/msg_340.c       Mon Jul 05 19:48:32 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_340.c       Mon Jul 05 19:53:43 2021 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: msg_340.c,v 1.1 2021/03/07 19:42:54 rillig Exp $       */
+/*     $NetBSD: msg_340.c,v 1.2 2021/07/05 19:53:43 rillig Exp $       */
 # 3 "msg_340.c"
 
-// Test for message: initialization with '[a...b]' is a GNU extension [340]
+// Test for message: initialization with '[a...b]' is a GCC extension [340]
 
 /*
- * In strict C mode, GNU extensions are flagged as such.
+ * In strict C mode, GCC extensions are flagged as such.
  */
 
 /* lint1-flags: -Ssw */
diff -r ddd50e970ae4 -r d3905c371166 tests/usr.bin/xlint/lint1/msg_340.exp
--- a/tests/usr.bin/xlint/lint1/msg_340.exp     Mon Jul 05 19:48:32 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_340.exp     Mon Jul 05 19:53:43 2021 +0000
@@ -1,1 +1,1 @@
-msg_340.c(16): error: initialization with '[a...b]' is a GNU extension [340]
+msg_340.c(16): error: initialization with '[a...b]' is a GCC extension [340]
diff -r ddd50e970ae4 -r d3905c371166 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Mon Jul 05 19:48:32 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Mon Jul 05 19:53:43 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.250 2021/07/05 19:48:32 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.251 2021/07/05 19:53:43 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.250 2021/07/05 19:48:32 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.251 2021/07/05 19:53:43 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1405,7 +1405,7 @@
        | constant_expr T_ELLIPSIS constant_expr {
                $$.lo = to_int_constant($1, true);
                $$.hi = to_int_constant($3, true);
-               /* initialization with '[a...b]' is a GNU extension */
+               /* initialization with '[a...b]' is a GCC extension */
                gnuism(340);
          }
        ;
diff -r ddd50e970ae4 -r d3905c371166 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Mon Jul 05 19:48:32 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Mon Jul 05 19:53:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.c,v 1.125 2021/07/04 17:01:58 rillig Exp $ */
+/*     $NetBSD: err.c,v 1.126 2021/07/05 19:53:43 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.125 2021/07/04 17:01:58 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.126 2021/07/05 19:53:43 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -394,7 +394,7 @@
        "right operand of '%s' must not be bool",                     /* 337 */
        "option '%c' should be handled in the switch",                /* 338 */
        "option '%c' should be listed in the options string",         /* 339 */
-       "initialization with '[a...b]' is a GNU extension",           /* 340 */
+       "initialization with '[a...b]' is a GCC extension",           /* 340 */
        "argument to '%s' must be 'unsigned char' or EOF, not '%s'",  /* 341 */
        "argument to '%s' must be cast to 'unsigned char', not to '%s'", /* 342 */
        "static array size is a C11 extension",                       /* 343 */



Home | Main Index | Thread Index | Old Index