[fpc-devel] Unreachable code warnings
peter at freepascal.org
Mon Oct 15 08:48:05 CEST 2007
>> Maybe it would better be a hint.
> Seems reasonable to me.
> The unused parameter hint is likewise also unavoidable with function
> callback implementations sometimes.
There is a good reason for that the unreachable code is a warning: The compiler _changes_ your
code by removing the if-branch. When it is a hint the compiler only has recognized a pattern, but
it does not modify anything.
More information about the fpc-devel