[PATCH] Comment out name of unused argument

Nathan Myers ncm@cantrip.org
Wed Jun 28 17:38:00 GMT 2000


This looks to me like a compiler bug.  Why is gcc warning
about "unused" arguments in function prototypes?   What 
version of gcc complains?  Have you filed a bug report?

I wouldn't like for the headers to be uglified (any further)
just to mask compiler bugs.

Nathan Myers
ncm at cantrip dot org

p.s. please forgive me if I'm being stupid.

On Wed, Jun 28, 2000 at 04:48:00PM -0700, Chip Salzenberg wrote:
> This fixes bootstrapping with -Werror.
> 
> 2000-06-28  Chip Salzenberg  <chip@valinux.com>
> 
> 	* bits/locale_facets.h (ctype<>::ctype(size_t)): Comment out name
> 	of unused argument, to avoid warnings.
> 
> Index: locale_facets.h
> diff -u -2 -p -c -r1.5 locale_facets.h
> cvs server: conflicting specifications of output style
> *** locale_facets.h	2000/06/13 02:13:53	1.5
> --- locale_facets.h	2000/06/28 23:41:33
> *************** namespace std
> *** 397,397 ****
> !       ctype(size_t __refs = 0) throw();
> --- 397,397 ----
> !       ctype(size_t /*__refs*/ = 0) throw();


More information about the Libstdc++ mailing list