[fpc-devel] Unreachable code warnings

Joao Morais post at joaomorais.com.br
Mon Oct 15 00:36:50 CEST 2007

Florian Klaempfl wrote:
> Joao Morais schrieb:
>> The compiler warns that the result wasn't assigned, but that function's
>> result simply cannot be reached.
> Fixed in trunk when compiled with -Oodfa which will be probably a
> default in 2.4.0.

Thanks. Now a note:

{$mode objfpc}
   vobj: tclass;
   vmethod: function: string of object;
   vobj := tobject;
   vmethod := @vobj.classname;

Remove the comment and the note is also removed.

Joao Morais

More information about the fpc-devel mailing list