Commit 22352844 by Paolo Carlini Committed by Paolo Carlini

re PR libstdc++/13831 (Unused variable in basic_filebuf::underflow)

2004-01-23  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/13831
	* include/bits/fstream.tcc (underflow): Remove unused
	variable.
	* include/bits/streambuf_iterator.h (equal): Ditto.
	* include/bits/locale_facets.h (_M_convert_from_char):
	Ditto.

From-SVN: r76433
parent 129057c1
2004-01-23 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13831
* include/bits/fstream.tcc (underflow): Remove unused
variable.
* include/bits/streambuf_iterator.h (equal): Ditto.
* include/bits/locale_facets.h (_M_convert_from_char):
Ditto.
2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
PR c/13814 PR c/13814
......
...@@ -179,7 +179,6 @@ namespace std ...@@ -179,7 +179,6 @@ namespace std
{ {
int_type __ret = traits_type::eof(); int_type __ret = traits_type::eof();
const bool __testin = this->_M_mode & ios_base::in; const bool __testin = this->_M_mode & ios_base::in;
const bool __testout = this->_M_mode & ios_base::out;
if (__testin && !_M_writing) if (__testin && !_M_writing)
{ {
// Check for pback madness, and if so swich back to the // Check for pback madness, and if so swich back to the
......
...@@ -4384,14 +4384,15 @@ namespace std ...@@ -4384,14 +4384,15 @@ namespace std
// Returns a locale and codeset-converted string, given a char* message. // Returns a locale and codeset-converted string, given a char* message.
string_type string_type
_M_convert_from_char(char* __msg) const _M_convert_from_char(char*) const
{ {
#if 0
// Length of message string without terminating null. // Length of message string without terminating null.
size_t __len = char_traits<char>::length(__msg) - 1; size_t __len = char_traits<char>::length(__msg) - 1;
// "everybody can easily convert the string using // "everybody can easily convert the string using
// mbsrtowcs/wcsrtombs or with iconv()" // mbsrtowcs/wcsrtombs or with iconv()"
#if 0
// Convert char* to _CharT in locale used to open catalog. // Convert char* to _CharT in locale used to open catalog.
// XXX need additional template parameter on messages class for this.. // XXX need additional template parameter on messages class for this..
// typedef typename codecvt<char, _CharT, _StateT> __codecvt_type; // typedef typename codecvt<char, _CharT, _StateT> __codecvt_type;
......
...@@ -132,9 +132,8 @@ namespace std ...@@ -132,9 +132,8 @@ namespace std
bool bool
equal(const istreambuf_iterator& __b) const equal(const istreambuf_iterator& __b) const
{ {
const int_type __eof = traits_type::eof(); const bool __thiseof = _M_at_eof();
bool __thiseof = _M_at_eof(); const bool __beof = __b._M_at_eof();
bool __beof = __b._M_at_eof();
return (__thiseof && __beof || (!__thiseof && !__beof)); return (__thiseof && __beof || (!__thiseof && !__beof));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment