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]

[v3] attribute unused for __convert_to_v


fix HPUX build issue with -Werror.

2003-04-23  Benjamin Kosnik  <bkoz at belmont dot constant dot com>

	* config/locale/generic/c_locale.h (__convert_from_v): Use
	attribute unused.

Index: config/locale/generic/c_locale.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/locale/generic/c_locale.h,v
retrieving revision 1.6
diff -c -p -r1.6 c_locale.h
*** config/locale/generic/c_locale.h	23 Jan 2003 18:55:59 -0000	1.6
--- config/locale/generic/c_locale.h	23 Apr 2003 19:26:45 -0000
*************** namespace std
*** 52,58 ****
    // be avoided.
    template<typename _Tv>
      int
!     __convert_from_v(char* __out, const int __size, const char* __fmt,
  		     _Tv __v, const __c_locale&, int __prec = -1)
      {
        char* __old = setlocale(LC_ALL, NULL);
--- 52,60 ----
    // be avoided.
    template<typename _Tv>
      int
!     __convert_from_v(char* __out, 
! 		     const int __size __attribute__ ((__unused__)),
! 		     const char* __fmt,
  		     _Tv __v, const __c_locale&, int __prec = -1)
      {
        char* __old = setlocale(LC_ALL, NULL);


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