This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++-v3 PATCH: Unnamed parameter
- To: gcc-patches at gcc dot gnu dot org
- Subject: libstdc++-v3 PATCH: Unnamed parameter
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 03 Aug 2000 00:57:57 -0700
- Cc: Benjamin Kosnik <bkoz at nabi dot net>
- Organization: CodeSourcery, LLC
Because V3 uses -Werror, we need this patch to avoid a warning from
the compiler that the parameter is unused. Arguably, this is a
compiler bug because the parameter is not given a name in the
definition -- but this never-the-less allows us to build with V3.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-08-03 Mark Mitchell <mark@codesourcery.com>
* bits/locale_facets.h (ctype::ctype): Don't name unused
parameters.
Index: libstdc++-v3/bits/locale_facets.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/locale_facets.h,v
retrieving revision 1.8
diff -c -p -r1.8 locale_facets.h
*** locale_facets.h 2000/07/22 01:27:11 1.8
--- locale_facets.h 2000/08/03 07:53:11
*************** namespace std
*** 463,469 ****
static locale::id id;
explicit
! ctype(size_t __refs = 0) throw();
protected:
virtual
--- 463,469 ----
static locale::id id;
explicit
! ctype(size_t /*__refs*/ = 0) throw();
protected:
virtual