On 8 August 2013 15:44, Jon Medhurst (Tixy) tixy@linaro.org wrote:
I was proposing that as a fix for the "may be used uninitialized" warning. :-) If we use a local variable then the compiler knows both if clauses are always executed or not as a pair and so knows the variable isn't used uninitialised. Seems the safest fix to me as it lets the compiler warn us about any dodgy use of that variable that may creep in in the future.
Hmm... because currently it is based on calling a function and its outcome isn't constant..
If compiler is smart enough to suppress this warning with the code you just suggested, I wouldn't have any issues with it..
You want the patch from me now? Or you can take care of it?