bug-gnulib
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]