Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2002 20:00:35 +0100
From:      Jens Rehsack <rehsack@web.de>
To:        obrien@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: gcc30-3.0.2
Message-ID:  <3C51AB53.9060205@web.de>

next in thread | raw e-mail | index | archive | help
Hi!

I compiled a new library using previously installed port gcc30-3.0.2
having most warning turned on:
CXXWARN +=	-W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual \
		-Wchar-subscripts -Winline -Wmissing-prototypes \
		-Wnested-externs -Wpointer-arith -Wredundant-decls \
		-Wshadow -Wstrict-prototypes -Wwrite-strings -Werror

in

/usr/local/lib/gcc-lib/i386-portbld-freebsd4.5/3.0.2/include/g++/bits/ostream.tcc:490
declaration of __fmt shadows previous local.

On my system I changed __fmt -> __lfmt like it follows.

*** ostream.tcc.orig	Fri Jan 25 19:59:23 2002
--- ostream.tcc	Fri Jan 25 19:58:54 2002
***************
*** 487,497 ****
   	  // Pad after 0[xX], if there is one.
   	  // Who came up with these rules, anyway? Jeeze.
   	  typedef _Format_cache<_CharT> __cache_type;
! 	  __cache_type const* __fmt = __cache_type::_S_get(__ios);
   	  const char_type* __minus = traits_type::find(__olds, __oldlen,
! 	 
				       __fmt->_S_minus);
   	  const char_type* __plus = traits_type::find(__olds, __oldlen,
! 	 
				      __fmt->_S_plus);
   	  bool __testsign = __minus || __plus;
   	  bool __testhex = __olds[0] == '0'
   	    		   && (__olds[1] == 'x' || __olds[1] == 'X');
--- 487,497 ----
   	  // Pad after 0[xX], if there is one.
   	  // Who came up with these rules, anyway? Jeeze.
   	  typedef _Format_cache<_CharT> __cache_type;
! 	  __cache_type const* __lfmt = __cache_type::_S_get(__ios);
   	  const char_type* __minus = traits_type::find(__olds, __oldlen,
! 	 
				       __lfmt->_S_minus);
   	  const char_type* __plus = traits_type::find(__olds, __oldlen,
! 	 
				      __lfmt->_S_plus);
   	  bool __testsign = __minus || __plus;
   	  bool __testhex = __olds[0] == '0'
   	    		   && (__olds[1] == 'x' || __olds[1] == 'X');



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C51AB53.9060205>