[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug or not? Order of compiler warning flags matters
From: |
Bernd Strieder |
Subject: |
Re: Bug or not? Order of compiler warning flags matters |
Date: |
Mon, 22 Nov 2004 14:42:33 +0100 |
User-agent: |
KNode/0.7.2 |
Hello,
Marcel Loose wrote:
> Compiling this with -Wall -W correctly produces the warning about the
> unused parameter `int i'.
> Adding the flag -Wno-unused-parameter suppresses this warning, but
> ONLY when it is added AFTER the -Wall switch.
See the docs. -Wall turns quite a number of warnings on, overriding
options you gave before. There are more warnings than -Wall would show,
this is what -W is for, which has been renamed to -Wextra in newer
releases, but this would not turn on all warnings, either.
Bernd Strieder