[prev in list] [next in list] [prev in thread] [next in thread]
List: gnulib-bug
Subject: Re: -Wunused
From: Simon Josefsson <simon () josefsson ! org>
Date: 2008-11-18 12:40:07
Message-ID: 87wsf1yzq0.fsf () mocca ! josefsson ! org
[Download RAW message or body]
Bruno Haible <bruno@clisp.org> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic