Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: fix tests on platforms...



details:   https://anonhg.NetBSD.org/src/rev/bce1f73c4574
branches:  trunk
changeset: 365265:bce1f73c4574
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 16 18:41:21 2022 +0000

description:
tests/lint: fix tests on platforms other than x86_64

In msg_259_ilp32.c 1.6 from 2022-04-15, I removed the option -S from the
test in order to keep the message 259, but I forgot to fix the C99-style
comment as well.

In platform_int.c, the default lint option -S no longer generated
warning 259, so remove that option.

diffstat:

 tests/usr.bin/xlint/lint1/msg_259_ilp32.c |  4 ++--
 tests/usr.bin/xlint/lint1/platform_int.c  |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 2138e7eab475 -r bce1f73c4574 tests/usr.bin/xlint/lint1/msg_259_ilp32.c
--- a/tests/usr.bin/xlint/lint1/msg_259_ilp32.c Sat Apr 16 18:15:20 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_259_ilp32.c Sat Apr 16 18:41:21 2022 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: msg_259_ilp32.c,v 1.6 2022/04/15 21:50:07 rillig Exp $ */
+/*     $NetBSD: msg_259_ilp32.c,v 1.7 2022/04/16 18:41:21 rillig Exp $ */
 # 3 "msg_259_ilp32.c"
 
-// Test for message: argument #%d is converted from '%s' to '%s' due to prototype [259]
+/* Test for message: argument #%d is converted from '%s' to '%s' due to prototype [259] */
 
 /*
  * See also msg_259, which contains more examples for this warning.
diff -r 2138e7eab475 -r bce1f73c4574 tests/usr.bin/xlint/lint1/platform_int.c
--- a/tests/usr.bin/xlint/lint1/platform_int.c  Sat Apr 16 18:15:20 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/platform_int.c  Sat Apr 16 18:41:21 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: platform_int.c,v 1.3 2021/09/26 14:52:37 rillig Exp $  */
+/*     $NetBSD: platform_int.c,v 1.4 2022/04/16 18:41:21 rillig Exp $  */
 # 3 "platform_int.c"
 
 /*
@@ -6,7 +6,7 @@
  * int and ptr_diff is signed int.
  */
 
-/* lint1-extra-flags: -c -h -a -p -b -r -z */
+/* lint1-flags: -g -w -c -h -a -p -b -r -z */
 /* lint1-only-if: int */
 
 void to_size(typeof(sizeof(int)));



Home | Main Index | Thread Index | Old Index