This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13831] Unused variable in basic_filebuf::underflow
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2004 15:33:33 -0000
- Subject: [Bug libstdc++/13831] Unused variable in basic_filebuf::underflow
- References: <20040123152506.13831.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-01-23 15:33 -------
More of these cases:
bits/locale_facets.h:
string_type
_M_convert_from_char(char* __msg) const
{
// Length of message string without terminating null.
size_t __len = char_traits<char>::length(__msg) - 1;
...
Here, __len is only used inside blocks that are removed by #if 0. Also,
the parameter __msg is unused.
bits/streambuf_iterator.h:
bool
equal(const istreambuf_iterator& __b) const
{
const int_type __eof = traits_type::eof();
bool __thiseof = _M_at_eof();
bool __beof = __b._M_at_eof();
return (__thiseof && __beof || (!__thiseof && !__beof));
}
__eof is unused
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13831