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-When: Mon, 01 Mar 2021 22:35:13 +0000

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.
The default LINTFLAGS in share/mk/ have only -a, not -aa.

Home | Main Index | Thread Index | Old Index