This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [doc patch] Fix PR c++/11613


Gabriel Dos Reis wrote:
Nathan Sidwell <nathan@codesourcery.com> writes:

| Index: doc/extend.texi
| ===================================================================
| RCS file: /cvs/gcc/gcc/gcc/doc/extend.texi,v
| retrieving revision 1.150
| diff -c -3 -p -r1.150 extend.texi
| *** doc/extend.texi 21 Jul 2003 15:08:55 -0000 1.150
| --- doc/extend.texi 25 Jul 2003 10:41:34 -0000
| *************** These attributes are not currently imple
| *** 2268,2275 ****
| @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++.
| | @cindex @code{used} attribute.
| @item used
| --- 2268,2274 ----
| @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.



Hmm, why did you remove that precision?
because it is untrue. GNU C++ does accept unused attributes on function
declarations, and it also now accepts them on parameter declarations.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]