On 9 March 2017 at 18:29, Alexey Veretennikov <alexey.veretenni...@gmail.com
> wrote:

> Hi,
>
> I'm trying to compile GNU APL with GCC 3.4.6 armv5. There are couple of
> bogus compiler warnings, mainly about variable might be uninitialized.
> Sometimes the situations are like this:
>
> SomeObject * ptr = new SomeObject(arg);
>
> - here compiler complains (sometimes) what ptr might be used uninitialized.
> I've fixed it by separating variable declaration and initialization with
> the real value, like this:
> In the beginning of the function:
>

Can you show the fill error message, including the file/line? I'm wondering
because I cannot see how ptr could ever be used uninitialised in that
example. There must be more to it that you didn't include.

Regards,
Elias

Reply via email to