ATF-devel archive

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

Re: -Werror=unused-but-set-variable

On 8/10/11 6:43 PM, Emmanuel Fleury wrote:
In fact, I assumed that the check for unused-variable was induced by the
-Wall and could be deactivated through a call to -Wno-unused. But, I'm
not sure that having explicitly both -Wno-unused and -Wunused in the
same command line will help a lot.

Aha. Actually, this should have worked on your side because the code is currently using -Wall first and later -Wno-unused-parameters to silence this part of -Wall. Might this be a bug in gcc 4.6?

Could you paste a single gcc execution line from the build log to see in what order the -W flags are being passed to the compiler?


Home | Main Index | Thread Index | Old Index