Bruno Haible <[EMAIL PROTECTED]> 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