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: add quotes to message 309 about co...



details:   https://anonhg.NetBSD.org/src/rev/6bb750c30a21
branches:  trunk
changeset: 1021200:6bb750c30a21
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun May 16 10:18:24 2021 +0000

description:
lint: add quotes to message 309 about constant conversion

diffstat:

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

diffs (46 lines):

diff -r 5d17c603cc69 -r 6bb750c30a21 tests/usr.bin/xlint/lint1/msg_309.c
--- a/tests/usr.bin/xlint/lint1/msg_309.c       Sun May 16 10:08:01 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_309.c       Sun May 16 10:18:24 2021 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: msg_309.c,v 1.3 2021/05/16 10:08:01 rillig Exp $       */
+/*     $NetBSD: msg_309.c,v 1.4 2021/05/16 10:18:25 rillig Exp $       */
 # 3 "msg_309.c"
 
-// Test for message: extra bits set to 0 in conversion of '%s' to '%s', op %s [309]
+// Test for message: extra bits set to 0 in conversion of '%s' to '%s', op '%s' [309]
 
 int
 scale(unsigned long long x) {
diff -r 5d17c603cc69 -r 6bb750c30a21 tests/usr.bin/xlint/lint1/msg_309.exp
--- a/tests/usr.bin/xlint/lint1/msg_309.exp     Sun May 16 10:08:01 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_309.exp     Sun May 16 10:18:24 2021 +0000
@@ -1,1 +1,1 @@
-msg_309.c(23): warning: extra bits set to 0 in conversion of 'unsigned int' to 'unsigned long long', op & [309]
+msg_309.c(23): warning: extra bits set to 0 in conversion of 'unsigned int' to 'unsigned long long', op '&' [309]
diff -r 5d17c603cc69 -r 6bb750c30a21 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sun May 16 10:08:01 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Sun May 16 10:18:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.c,v 1.116 2021/04/18 17:36:18 rillig Exp $ */
+/*     $NetBSD: err.c,v 1.117 2021/05/16 10:18:24 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.116 2021/04/18 17:36:18 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.117 2021/05/16 10:18:24 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -363,7 +363,7 @@
        "constant truncated by conversion, op %s",                    /* 306 */
        "static variable %s set but not used",                        /* 307 */
        "invalid type for _Complex",                                  /* 308 */
-       "extra bits set to 0 in conversion of '%s' to '%s', op %s",   /* 309 */
+       "extra bits set to 0 in conversion of '%s' to '%s', op '%s'", /* 309 */
        "symbol renaming can't be used on function arguments",        /* 310 */
        "symbol renaming can't be used on automatic variables",       /* 311 */
        "%s C does not support // comments",                          /* 312 */



Home | Main Index | Thread Index | Old Index