summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_247_portable.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-07-08 15:26:25 +0000
committerrillig <rillig@NetBSD.org>2023-07-08 15:26:25 +0000
commit65989024f874330227db7d9793fa78cab7c0ee2f (patch)
tree74bc338956dbc13d05596e6fdabb684576902ce9 /tests/usr.bin/xlint/lint1/msg_247_portable.c
parent06c86f587bc97ca18607602ed3345db07a0dacd8 (diff)
lint: do not use portable type sizes in integer constraints
This reverts the change from tree.c 1.547 from 2023-07-03. Back then, I didn't know that the actual value from a type's 'portable size in bits' was not supposed to be used.
Diffstat (limited to 'tests/usr.bin/xlint/lint1/msg_247_portable.c')
-rw-r--r--tests/usr.bin/xlint/lint1/msg_247_portable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/usr.bin/xlint/lint1/msg_247_portable.c b/tests/usr.bin/xlint/lint1/msg_247_portable.c
index 29025f56fc3..028a41b5131 100644
--- a/tests/usr.bin/xlint/lint1/msg_247_portable.c
+++ b/tests/usr.bin/xlint/lint1/msg_247_portable.c
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_247_portable.c,v 1.2 2023/07/05 11:42:14 rillig Exp $ */
+/* $NetBSD: msg_247_portable.c,v 1.3 2023/07/08 15:26:25 rillig Exp $ */
# 3 "msg_247_portable.c"
// Test for message: pointer cast from '%s' to '%s' may be troublesome [247]
@@ -11,6 +11,7 @@
// msg_247_ilp32_ldbl64.c
// msg_247_lp64_ldbl128.c
+/* lint1-only-if: long */
/* lint1-extra-flags: -c -p -X 351 */
typedef double double_array[5];