bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Bogus compiler warnings


From: Elias Mårtenson
Subject: Re: [Bug-apl] Bogus compiler warnings
Date: Thu, 9 Mar 2017 18:34:09 +0800

On 9 March 2017 at 18:29, Alexey Veretennikov <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]