[fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array
Lukasz Sokol
el.es.cr at gmail.com
Tue Mar 10 18:12:00 CET 2015
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
More information about the fpc-pascal
mailing list