This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5026: __attribute__ ((unused) seems misdocumented
- From: bangerth at dealii dot org
- To: bh at techhouse dot brown dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 11 Dec 2002 00:53:44 -0000
- Subject: Re: c++/5026: __attribute__ ((unused) seems misdocumented
- Reply-to: bangerth at dealii dot org, bh at techhouse dot brown dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: __attribute__ ((unused) seems misdocumented
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Dec 10 16:53:43 2002
State-Changed-Why:
This still applies. I agree that the last sentence of the
attribute description is un-understandable:
---------------
@cindex @code{unused} attribute.
@item unused
This attribute, attached to a function, means that the function is meant
to be possibly unused. GCC will not produce a warning for this
function. GNU C++ does not currently support this attribute as
definitions without parameters are valid in C++.
-----------------
What is the supposed meaning of it? Unfortunately, the CVS
history does not reach back far enough...
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5026