Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: rillig
Date: Sat Jul 8 16:13:00 UTC 2023
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_247_ilp32_ldbl64.c
msg_247_lp64_ldbl128.c msg_247_portable.c
src/usr.bin/xlint/common: inittyp.c lint.h
src/usr.bin/xlint/lint1: decl.c tree.c
Log Message:
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 *'.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_247_ilp32_ldbl64.c \
src/tests/usr.bin/xlint/lint1/msg_247_lp64_ldbl128.c \
src/tests/usr.bin/xlint/lint1/msg_247_portable.c
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/xlint/common/inittyp.c
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/xlint/common/lint.h
cvs rdiff -u -r1.344 -r1.345 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.553 -r1.554 src/usr.bin/xlint/lint1/tree.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index