diff options
| author | rillig <rillig@NetBSD.org> | 2023-07-08 16:13:00 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2023-07-08 16:13:00 +0000 |
| commit | 9299a7c5194512b0d5ea06c7b286d4bae6640791 (patch) | |
| tree | c91e393a4af29d255b4af29197c80f1202c0f6f2 /sys/dev/microcode/tools | |
| parent | 96e65dba728fddd2104244f530812358469a0896 (diff) | |
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 *'.
Diffstat (limited to 'sys/dev/microcode/tools')
0 files changed, 0 insertions, 0 deletions
