This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/13831] Unused variable in basic_filebuf::underflow


------- 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


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