This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++: Three new warnings while building the library(patchincluded)
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: libstdc++: Three new warnings while building the library(patchincluded)
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Fri, 2 Mar 2001 23:12:51 +0100 (CET)
- cc: libstdc++ at gcc dot gnu dot org
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)