Module Name: src
Committed By: rillig
Date: Sat Apr 16 18:41:22 UTC 2022
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_259_ilp32.c platform_int.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/msg_259_ilp32.c
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/platform_int.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_259_ilp32.c
diff -u src/tests/usr.bin/xlint/lint1/msg_259_ilp32.c:1.6 src/tests/usr.bin/xlint/lint1/msg_259_ilp32.c:1.7
--- src/tests/usr.bin/xlint/lint1/msg_259_ilp32.c:1.6 Fri Apr 15 21:50:07 2022
+++ src/tests/usr.bin/xlint/lint1/msg_259_ilp32.c Sat Apr 16 18:41:21 2022
@@ -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.
Index: src/tests/usr.bin/xlint/lint1/platform_int.c
diff -u src/tests/usr.bin/xlint/lint1/platform_int.c:1.3 src/tests/usr.bin/xlint/lint1/platform_int.c:1.4
--- src/tests/usr.bin/xlint/lint1/platform_int.c:1.3 Sun Sep 26 14:52:37 2021
+++ src/tests/usr.bin/xlint/lint1/platform_int.c Sat Apr 16 18:41:21 2022
@@ -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)));