[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -Wunused
From: |
Simon Josefsson |
Subject: |
Re: -Wunused |
Date: |
Tue, 18 Nov 2008 13:40:07 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
>> Regarding -Wunused, I was unsure whether it needs to be added. The GCC
>> 4.3.2 manual appears contradicting on whether -Wunused is implied by
>> -Wall or not
>
> -Wunused-parameter is implied by the *combination* of -Wall and -W, or of
> -Wunused and -W.
My confusion stem from this remark:
`-Wunused'
All the above `-Wunused' options combined.
In order to get a warning about an unused function parameter, you
must either specify `-Wextra -Wunused' (note that `-Wall' implies
`-Wunused'), or separately specify `-Wunused-parameter'.
/Simon
- Re: [PATCH] warnings: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED., (continued)
- Re: [PATCH] warnings: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED., Bruno Haible, 2008/11/18
- Re: [PATCH] warnings: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED., Simon Josefsson, 2008/11/18
- Re: -Wunused, Bruno Haible, 2008/11/18
- Re: -Wunused,
Simon Josefsson <=
- Re: [PATCH] warnings: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED., Bruno Haible, 2008/11/18
- Re: [PATCH] warnings: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED., Simon Josefsson, 2008/11/18
- Re: [PATCH] warnings: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED., Brian Dessent, 2008/11/18
- Re: [PATCH] warnings: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED., Simon Josefsson, 2008/11/18