<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">Am 2015-03-09 um 18:31 schrieb Jonas
Maebe:<br>
</div>
<blockquote
cite="mid:622BB7B3-68DD-495F-BBB4-1321649B64C9@elis.ugent.be"
type="cite">
<pre wrap="">
On 09 Mar 2015, at 17:49, Jürgen Hestermann <a class="moz-txt-link-rfc2396E" href="mailto:juergen.hestermann@gmx.de"><juergen.hestermann@gmx.de></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Am 2015-03-09 um 17:40 schrieb Jonas Maebe:
</pre>
<blockquote type="cite">
<pre wrap="">
<a class="moz-txt-link-freetext" href="http://bugs.freepascal.org/view.php?id=24601#c75617">http://bugs.freepascal.org/view.php?id=24601#c75617</a> (and the comment below + use -vq to see warning numbers, and -vmXXXX to block a particular warning number).
</pre>
</blockquote>
<pre wrap="">
Thanks for the answer.
But still: Why is there such a warning for managed types at all?
</pre>
</blockquote>
<pre wrap="">
That is the same question you asked in your original mail and which is answered in the bug report comment I linked in reply.
</pre>
</blockquote>
<br>
Not quite. In the bug comment you wrote:<br>
<br>
<a name="bugnotes" id="bugnotes">The warning is by design for all
kinds of variables and regardless of their storage location (as
noted by the original submitter, global/static variables of any
kind are always initialised by 0/nil/...). The warning means that
no value has been explicitly assigned to these variables (which
may indicate a logic error in the code), not necessarily that they
contain an unpredictable value.<br>
<br>
But still there is the question *why* this design exists?<br>
I think it is a bad design.<br>
It should know that managed types *are* initialized and not raise
a warning in this case.<br>
Why generate a warning with an incorrect statement?<br>
Am I forced to add (superfluous) initialization code or somehow
suppress this kind of <br>
warning just to get rid of this false warnings which are useless
from the beginning?<br>
</a><br>
</body>
</html>