[fpc-devel] Unreachable code warnings

Micha Nelissen micha at neli.hopto.org
Sun Oct 14 21:14:38 CEST 2007

Daniƫl Mantione wrote:
>> A warning should always be fixable and doing so, turning it into correct
>> code. The compiler is simply wrong here; my code is correct, so it
>> should not complain.
> The warning is fixable: Remove the superfluous check.

Sigh. That's my point. If you were using smallint before, and someone
changes the type to integer, then a bug is introduced; so you don't want
to remove the check but the compiler can of course optimize it away.


More information about the fpc-devel mailing list