On 21.04.2015 16:28, Paolo Bonzini wrote: > > > On 21/04/2015 16:25, Claudio Fontana wrote: >> I seem not to get this warning with the compiler version I am currently >> using, >> and after checking the code I could not find out why with some compilers >> would emit such a warning. >> >> It is difficult for me to debug this issue since I do not get this.. >> I am using a slightly older compiler from Linaro for AArch64 (4.8.3 based) > > I would just add a NULL initializer. > > Paolo >
Absolutely, yes, I thought about that and just be done with it. I wonder if that's the right compiler behavior though; is it acceptable that the compiler cannot figure out that needle is always initialized before use when you have switch (format) { case 'c': needle = SOMETHING; ... } if (format != 'c') { needle = SOMETHING_ELSE; } actually_use(needle); ? Ciao, Claudio