NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: misc/14531 (lint misses conversion warning.)



Synopsis: lint misses conversion warning.

State-Changed-From-To: open->closed
State-Changed-By: rillig%NetBSD.org@localhost
State-Changed-When: Mon, 01 Mar 2021 22:35:13 +0000
State-Changed-Why:

Lint does warn about narrowing conversions, just not by default.
It needs to be given the option -aa (yes, -a twice).
See src/tests/usr.bin/xlint/lint1/msg_132.c for a demonstration.
https://mail-index.netbsd.org/source-changes/2021/02/28/msg127390.html
The default LINTFLAGS in share/mk/sys.mk have only -a, not -aa.





Home | Main Index | Thread Index | Old Index