Quote:> > Even when I am using the option -Wall OR -Wunused, I am not warned
> > about unused variables (I deliberately introduce unused variables to
> > test the compiler ability to warn).
Ok, here was my problem: a tab at the end of a line in my makefile caused
the Makefile to be read incorrectly. Thank you all for your help.
Quote:> > Its ability to do so depend on the chosen optimization level.
> > The information about unused variables is a side product of
> > optimizing the code.
Villy, I don't see how optimization would prevent some
warnings on the source code to be reported. The "Unused variable" warning
relates to the source code itself, not to the compiled code (which,
with optimization turned on, might not reflect exactly the source code).
I haven't done any extensive tests, but changing the optimization level had
no impact on the warnings reported in my case.
Do you have some more details about it? Am I missing something ?
Thank you, Mathieu.