|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] Bogus compiler warnings |
Date: | Thu, 9 Mar 2017 18:34:09 +0800 |
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:
[Prev in Thread] | Current Thread | [Next in Thread] |