OpenGrok
Cross Reference: msg_132_ilp32.c
xref
: /
src
/
tests
/
usr.bin
/
xlint
/
lint1
/
msg_132_ilp32.c
Home
|
History
|
Annotate
|
Download
|
only in
lint1
History log of
/src/tests/usr.bin/xlint/lint1/msg_132_ilp32.c
Revision
Date
Author
Comments
1.5
08-Aug-2023
rillig
lint: in -a mode, do not warn about integer conversions from 'int'
Since tree.c 1.552 from 2023-07-08, lint warned about integer
conversions from 'int' or 'unsigned int' to smaller integer types. This
only affected 32-bit platforms where size_t is 'unsigned int' rather
than 'unsigned long', as on these platforms, the integer ranks of 'int'
and 'long' are the same, see INT_RANK in inittyp.c.
Discovered by lib/libkvm, which fails on i386 when lint generates any
warnings.
1.4
08-Aug-2023
rillig
tests/lint: test integer conversions on ilp32 int platforms
1.3
28-Mar-2023
rillig
lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
1.2
10-Jun-2022
rillig
tests/lint: fix test for loss of accuracy on ILP32 platforms
The test had been wrong since msg_132.c 1.14 from 2022-05-30.
Using 'unsigned long' in a test that was intended to behave the same on
ILP32 and LP64 was an accident. Use 'unsigned long long' instead, which
is 64-bits wide on all platforms supported by lint.
Move the test about conversion from 'long' to 'int' to the
platform-specific test files.
Noticed by martin@ on powerpc.
1.1
25-Aug-2021
rillig
tests/lint: test conversion from long long to intptr_t on ilp32
Seen in usr.bin/make/var.c:1608.
Indexes created Thu Oct 23 22:10:10 GMT 2025