[v3] attribute unused for __convert_to_v
Benjamin Kosnik
bkoz@redhat.com
Wed Apr 23 19:28:00 GMT 2003
fix HPUX build issue with -Werror.
2003-04-23 Benjamin Kosnik <bkoz@belmont.constant.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);
More information about the Gcc-patches
mailing list