Module Name: src
Committed By: rillig
Date: Sun May 16 10:18:25 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_309.c msg_309.exp
src/usr.bin/xlint/lint1: err.c
Log Message:
lint: add quotes to message 309 about constant conversion
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_309.c \
src/tests/usr.bin/xlint/lint1/msg_309.exp
cvs rdiff -u -r1.116 -r1.117 src/usr.bin/xlint/lint1/err.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/xlint/lint1/msg_309.c
diff -u src/tests/usr.bin/xlint/lint1/msg_309.c:1.3 src/tests/usr.bin/xlint/lint1/msg_309.c:1.4
--- src/tests/usr.bin/xlint/lint1/msg_309.c:1.3 Sun May 16 10:08:01 2021
+++ src/tests/usr.bin/xlint/lint1/msg_309.c Sun May 16 10:18:25 2021
@@ -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) {
Index: src/tests/usr.bin/xlint/lint1/msg_309.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_309.exp:1.3 src/tests/usr.bin/xlint/lint1/msg_309.exp:1.4
--- src/tests/usr.bin/xlint/lint1/msg_309.exp:1.3 Sun May 16 10:08:01 2021
+++ src/tests/usr.bin/xlint/lint1/msg_309.exp Sun May 16 10:18:25 2021
@@ -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]
Index: src/usr.bin/xlint/lint1/err.c
diff -u src/usr.bin/xlint/lint1/err.c:1.116 src/usr.bin/xlint/lint1/err.c:1.117
--- src/usr.bin/xlint/lint1/err.c:1.116 Sun Apr 18 17:36:18 2021
+++ src/usr.bin/xlint/lint1/err.c Sun May 16 10:18:24 2021
@@ -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 @@ const char *const msgs[] = {
"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 */