GCC 3.1 & "unused" attribute behavior change wrt. -Wxx flags?

Gwenole Beauchesne gbeauchesne@mandrakesoft.com
Thu Apr 25 08:35:00 GMT 2002


On Thu, 25 Apr 2002, Joseph S. Myers wrote:

> Note that this declaration applies the "unused" attribute to the type of
> msg, not msg itself (see Attribute Syntax in the manual).

OK, that's a program bug then. Thanks. What would the "unused" attribute
to the type of msg (a parameter in that case) mean otherwise?

FYI, that was pciutils-2.1.9/lib/access.c (pci_null_debug) + others, when
compiled with -Wall -W -Wno-parentheses -Wstrict-prototypes -Werror.

Bye,
Gwenole.





More information about the Gcc-bugs mailing list