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]

libstdc++-v3 PATCH: Unnamed parameter



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 

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