On 10/03/15 13:54, Sven Barth wrote:

>> I mean, it's good to have this warning enabled by default and only suppress 
>> it around code
>> that /I/ know it's bogus at. Otherwise, it /really/ wouldn't serve its 
>> purpose of pointing
>> where a PEBKAC^WLOGIC ERROR may occur...
>>
>> Sort of like surround the variable declaration with
>> {$WARN IDENTIFIER OFF}
>> {$WARN IDENTIFIER ON}  explicitly (then have code tools fold it so it won't 
>> pinch our eyes ;) )
> 
> Note: you should use the sequence {$push}{$warn xyz off}bla{$pop} as
> otherwise you would enable the warning if it was disabled from the
> command line parameters or the configuration. 

Thanks, seen this hinted on this m/l before, +1 :)

> Regards,
> Sven

el es


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to