OpenGrok
Cross Reference: msg_247_portable.c
xref
: /
src
/
tests
/
usr.bin
/
xlint
/
lint1
/
msg_247_portable.c
Home
|
History
|
Annotate
|
Download
|
only in
lint1
History log of
/src/tests/usr.bin/xlint/lint1/msg_247_portable.c
Revision
Date
Author
Comments
1.6
28-Sep-2024
rillig
lint: reword warning about cast between unrelated pointer types
The phrase "may be troublesome" was too unspecific to be useful.
1.5
07-Aug-2023
rillig
branches: 1.5.2;
tests/lint: show that portable mode depends on PTRDIFF_TSPEC
Since 2023.07.08.12.45.43, lint warns in lib/libkvm on i386.
1.4
08-Jul-2023
rillig
lint: warn about pointer casts between different kinds of types
Pointer casts from an integer type to a floating-point type and vice
versa get a 'maybe troublesome' warning now. The previous assumption
that all types of the same bit-size are convertible may have been valid
from a technical point of view, but still such code should get more
attention.
The rules for struct and union types could be made more fine-grained
later, if the need arises. To suppress this warning, it's always
possible to cast to an intermediate 'void *'.
1.3
08-Jul-2023
rillig
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.
1.2
05-Jul-2023
rillig
tests/lint: spell platform identifiers for 'long double' consistently
The test file names don't have a hyphen, so the identifiers shouldn't
have one either.
1.1
05-Jul-2023
rillig
tests/lint: add platform-specific tests for troublesome pointer casts
1.5.2.1
02-Aug-2025
perseant
Sync with HEAD
Indexes created Wed Oct 22 13:09:56 GMT 2025