[fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

Sven Barth pascaldragon at googlemail.com
Tue Mar 10 17:36:27 CET 2015


Am 10.03.2015 17:25 schrieb "Jürgen Hestermann" <juergen.hestermann at gmx.de>:
>
>
> Am 2015-03-10 um 10:08 schrieb Mattias Gaertner:
>
>> On Tue, 10 Mar 2015 08:48:49 +0000
>> Lukasz Sokol <el.es.cr at gmail.com> wrote:
>>
>>> On 10/03/15 06:10, Jürgen Hestermann wrote:
>>> [...]
>>>>
>>>> Why not simply omit these messages (for managed types)?
>>>
>>> Just because YOU don't need it, doesn't mean it's useless for
everybody...
>>>
>>> http://www.freepascal.org/docs-html/prog/progsu80.html#x87-860001.2.80
>>>
>>> why not just use this to suppress the warning JUST where you DO know
it's not needed?
>>>
>>> (you can suppress warning by number too IIUC).
>>
>> Yes.
>> For example in Lazarus 1.3+ you can right click the message and
>> click on "Hide with project option (-vm5089)".
>>
> Would this oppress these warnings for managed types only?
> Or would I loose them for non-managed types too?

It mutes the warning with the ID 5089 (the ID can be seen with -vq). So as
long as the managed and unmanaged ones use the same warning ID (AFAIR they
do) they will both be silenced.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150310/60cae7a2/attachment.html>


More information about the fpc-pascal mailing list