This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: libstdc++: Three new warnings while building the library(patchincluded)



I found the line that is responsible for the third warning.
Making __extracted a variable of type __size_type eliminates the
warning. 

Peter Schmid

2001-03-02  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

	* include/bits/istream.tcc: change type of __extracted to __size_type 

*** libstdc++-v3/include/bits/istream.tcc.orig	Fri Mar  2 21:57:13 2001
--- libstdc++-v3/include/bits/istream.tcc	Fri Mar  2 22:03:39 2001
*************** namespace std {
*** 1113,1119 ****
        typedef typename __istream_type::__ctype_type 	__ctype_type;
        typedef basic_string<_CharT, _Traits, _Alloc> 	__string_type;
        typedef typename __string_type::size_type		__size_type;
!       __int_type __extracted = 0;
  
        typename __istream_type::sentry __cerb(__in, false);
        if (__cerb) 
--- 1113,1119 ----
        typedef typename __istream_type::__ctype_type 	__ctype_type;
        typedef basic_string<_CharT, _Traits, _Alloc> 	__string_type;
        typedef typename __string_type::size_type		__size_type;
!       __size_type __extracted = 0; 
  
        typename __istream_type::sentry __cerb(__in, false);
        if (__cerb) 


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