]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mt_allocator.h (__mt_alloc::__mt_alloc): Remove name of unused parameter.
authorChris Jefferson <chris@bubblescope.net>
Mon, 26 Dec 2005 10:53:42 +0000 (10:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 26 Dec 2005 10:53:42 +0000 (10:53 +0000)
2005-12-26  Chris Jefferson  <chris@bubblescope.net>

* include/ext/mt_allocator.h (__mt_alloc::__mt_alloc): Remove
name of unused parameter.
* include/bits/stream_iterator.h (istream_iterator::istream_iterator):
Construct _M_value.
* include/debug/functions.h (__check_valid_range): Add
__attribute__((unused)).
* include/tr1/hashtable (hashtable::end): Remove name of unused
parameter.
* include/tr1/tuple_iterate.h (tuple::tuple): Likewise.
(tuple::operator=): Add __attribute__((unused)).
* include/tr1/functional (Fnv_hash<4>::hash): Add static_cast.
(Fnv_hash<8>::hash): Likewise.

* testsuite/25_algorithms/iter_swap/20577.cc (swap): Remove name of
unused parameter.
* testsuite/25_algorithms/unique_copy/check_type.cc (S2::S2,X2::X2):
Likewise.
* testsuite/22_locale/ctype/narrow/char/19955.cc (do_narrow): Likewise.
* testsuite/22_locale/ctype/is/char/9858.cc (Derived::do_is,
Derived::do_scan_is, Derived::do_scan_not, Derived2::do_is,
Derived2::do_scan_is, Derived2::do_scan_not): Likewise.
* testsuite/22_locale/time_put/put/wchar_t/12439_1.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/wchar_t/12439_3.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/char/12439_1.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/char/12439_3.cc (TP::do_put):
Likewise.
* testsuite/testsuite_io.h (fail_num_get::do_get, fail_num_put::do_put):
Likewise.
* testsuite/25_algorithms/find/17441.cc (find): Likewise.
* testsuite/23_containers/vector/cons/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/vector/bool/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/list/cons/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/set/modifiers/16728.cc (test_container):
Likewise.
* testsuite/27_io/basic_ios/cons/char/3.cc (char_traits::to_char_type,
to_int_type): Likewise.
* testsuite/27_io/basic_filebuf/imbue/12206.cc (codecvt::do_out, do_in,
do_unshift, do_length): Likewise.
* testsuite/21_strings/basic_string/capacity/1.cc
(operator==(A<T>,A<T>), operator<(A<T>,A<T>),
char_traits::to_char_type, char_traits::to_int_type): Likewise
* testsuite/testsuite_character.h (ctype::do_is, ctype::do_scan_is,
ctype::do_scan_not, do_toupper, do_tolower): Likewise.
* testsuite/25_algorithms/replace_copy/check_type.cc (Z::operator=):
Add missing return statement.
* testsuite/25_algorithms/replace_copy_if/check_type.cc (Z::operator=):
Likewise.
* testsuite/testsuite_iterators.h (output_iterator_wrapper::operator=,
random_access_iterator_wrapper::operator==): Likewise.
* testsuite/20_util/functional/binders/1.cc (s::f_int_int_const,
s::f_int_int, s::f_int_void_const, s::f_int_void): Likewise.
* testsuite/27_io/types/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/write/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/write/char/1.cc (test01): Likewise.
* testsuite/21_strings/c_strings/wchar_t/24559.cc (main): Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc (check): Add static
cast.
* testsuite/27_io/basic_istream/ignore/char/2.cc (check): Likewise.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc (check): Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc (check): Likewise.
* testsuite/testsuite_allocator.h (check_new): Likewise.
(check_deallocate_null): Add missing return value.
* testsuite/ext/pool_allocator/allocate_chunk.cc (test01):
Make variable unsigned.
* testsuite/23_containers/vector/modifiers/erase/1.cc (N,N1,N2,N3,N4,
N5,test01): Likewise.
* testsuite/26_numerics/valarray/valarray_subset_assignment.cc
(check_array): Likewise.
(main): Removed unused variable.
* testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc (test05):
Removed unused variable.
* testsuite/27_io/basic_ostream/flush/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/flush/char/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/endl/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/endl/char/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/ends/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/ends/char/1.cc (test01): Likewise.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/
assign/shared_ptr.cc (test01): Correct return type.
* testsuite/27_io/basic_filebuf/close/char/2.cc (test_02):
Add default value to close_num.

From-SVN: r109062

50 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stream_iterator.h
libstdc++-v3/include/debug/functions.h
libstdc++-v3/include/ext/mt_allocator.h
libstdc++-v3/include/tr1/functional
libstdc++-v3/include/tr1/hashtable
libstdc++-v3/include/tr1/tuple_iterate.h
libstdc++-v3/testsuite/20_util/functional/binders/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/1.cc
libstdc++-v3/testsuite/22_locale/ctype/is/char/9858.cc
libstdc++-v3/testsuite/22_locale/ctype/narrow/char/19955.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/12439_1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/12439_3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_3.cc
libstdc++-v3/testsuite/23_containers/deque/cons/clear_allocator.cc
libstdc++-v3/testsuite/23_containers/list/cons/clear_allocator.cc
libstdc++-v3/testsuite/23_containers/set/modifiers/16728.cc
libstdc++-v3/testsuite/23_containers/vector/bool/clear_allocator.cc
libstdc++-v3/testsuite/23_containers/vector/cons/clear_allocator.cc
libstdc++-v3/testsuite/23_containers/vector/modifiers/erase/1.cc
libstdc++-v3/testsuite/25_algorithms/find/17441.cc
libstdc++-v3/testsuite/25_algorithms/iter_swap/20577.cc
libstdc++-v3/testsuite/25_algorithms/replace_copy/check_type.cc
libstdc++-v3/testsuite/25_algorithms/replace_copy_if/check_type.cc
libstdc++-v3/testsuite/25_algorithms/unique_copy/check_type.cc
libstdc++-v3/testsuite/26_numerics/valarray/valarray_subset_assignment.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/12206.cc
libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc
libstdc++-v3/testsuite/27_io/basic_istream/getline/char/5.cc
libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc
libstdc++-v3/testsuite/27_io/basic_ostream/endl/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/endl/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/ends/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/ends/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/flush/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/write/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/write/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/in_avail/char/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc
libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc
libstdc++-v3/testsuite/testsuite_character.h
libstdc++-v3/testsuite/testsuite_io.h
libstdc++-v3/testsuite/testsuite_iterators.h
libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/assign.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/shared_ptr.cc

index 157695246384d8eb7a38d4eafcb7af6c98dbc123..f5c25b9640bcfc10c505266dff6187d174905635 100644 (file)
@@ -1,3 +1,93 @@
+2005-12-26  Chris Jefferson  <chris@bubblescope.net>
+
+       * include/ext/mt_allocator.h (__mt_alloc::__mt_alloc): Remove
+       name of unused parameter.
+       * include/bits/stream_iterator.h (istream_iterator::istream_iterator):
+       Construct _M_value.
+       * include/debug/functions.h (__check_valid_range): Add
+       __attribute__((unused)).
+       * include/tr1/hashtable (hashtable::end): Remove name of unused
+       parameter.
+       * include/tr1/tuple_iterate.h (tuple::tuple): Likewise.
+       (tuple::operator=): Add __attribute__((unused)).
+       * include/tr1/functional (Fnv_hash<4>::hash): Add static_cast.
+       (Fnv_hash<8>::hash): Likewise.
+
+       * testsuite/25_algorithms/iter_swap/20577.cc (swap): Remove name of
+       unused parameter.
+       * testsuite/25_algorithms/unique_copy/check_type.cc (S2::S2,X2::X2):
+       Likewise.
+       * testsuite/22_locale/ctype/narrow/char/19955.cc (do_narrow): Likewise.
+       * testsuite/22_locale/ctype/is/char/9858.cc (Derived::do_is, 
+       Derived::do_scan_is, Derived::do_scan_not, Derived2::do_is,
+       Derived2::do_scan_is, Derived2::do_scan_not): Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc (TP::do_put):
+       Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc (TP::do_put):
+       Likewise.
+       * testsuite/22_locale/time_put/put/char/12439_1.cc (TP::do_put):
+       Likewise.
+       * testsuite/22_locale/time_put/put/char/12439_3.cc (TP::do_put):
+       Likewise.
+       * testsuite/testsuite_io.h (fail_num_get::do_get, fail_num_put::do_put):
+       Likewise.
+       * testsuite/25_algorithms/find/17441.cc (find): Likewise.
+       * testsuite/23_containers/vector/cons/clear_allocator.cc
+       (clear_alloc::clear_alloc): Likewise.
+       * testsuite/23_containers/vector/bool/clear_allocator.cc
+       (clear_alloc::clear_alloc): Likewise.
+       * testsuite/23_containers/list/cons/clear_allocator.cc
+       (clear_alloc::clear_alloc): Likewise.
+       * testsuite/23_containers/set/modifiers/16728.cc (test_container):
+       Likewise.
+       * testsuite/27_io/basic_ios/cons/char/3.cc (char_traits::to_char_type,
+       to_int_type): Likewise.
+       * testsuite/27_io/basic_filebuf/imbue/12206.cc (codecvt::do_out, do_in,
+       do_unshift, do_length): Likewise.
+       * testsuite/21_strings/basic_string/capacity/1.cc 
+       (operator==(A<T>,A<T>), operator<(A<T>,A<T>),
+       char_traits::to_char_type, char_traits::to_int_type): Likewise
+       * testsuite/testsuite_character.h (ctype::do_is, ctype::do_scan_is,
+       ctype::do_scan_not, do_toupper, do_tolower): Likewise.
+       * testsuite/25_algorithms/replace_copy/check_type.cc (Z::operator=):
+       Add missing return statement.
+       * testsuite/25_algorithms/replace_copy_if/check_type.cc (Z::operator=):
+       Likewise.
+       * testsuite/testsuite_iterators.h (output_iterator_wrapper::operator=,
+       random_access_iterator_wrapper::operator==): Likewise.
+       * testsuite/20_util/functional/binders/1.cc (s::f_int_int_const,
+       s::f_int_int, s::f_int_void_const, s::f_int_void): Likewise.
+       * testsuite/27_io/types/1.cc (test01): Likewise.
+       * testsuite/27_io/basic_ostream/write/wchar_t/1.cc (test01): Likewise.
+       * testsuite/27_io/basic_ostream/write/char/1.cc (test01): Likewise.
+       * testsuite/21_strings/c_strings/wchar_t/24559.cc (main): Likewise.
+       * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc (check): Add static
+       cast.
+       * testsuite/27_io/basic_istream/ignore/char/2.cc (check): Likewise.
+       * testsuite/27_io/basic_istream/getline/wchar_t/5.cc (check): Likewise.
+       * testsuite/27_io/basic_istream/getline/char/5.cc (check): Likewise.
+       * testsuite/testsuite_allocator.h (check_new): Likewise.
+       (check_deallocate_null): Add missing return value.
+       * testsuite/ext/pool_allocator/allocate_chunk.cc (test01):
+       Make variable unsigned.
+       * testsuite/23_containers/vector/modifiers/erase/1.cc (N,N1,N2,N3,N4,
+       N5,test01): Likewise.
+       * testsuite/26_numerics/valarray/valarray_subset_assignment.cc
+       (check_array): Likewise.
+       (main): Removed unused variable.
+       * testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc (test05):
+       Removed unused variable.
+       * testsuite/27_io/basic_ostream/flush/wchar_t/1.cc (test01): Likewise.
+       * testsuite/27_io/basic_ostream/flush/char/1.cc (test01): Likewise.
+       * testsuite/27_io/basic_ostream/endl/wchar_t/1.cc (test01): Likewise.
+       * testsuite/27_io/basic_ostream/endl/char/1.cc (test01): Likewise.
+       * testsuite/27_io/basic_ostream/ends/wchar_t/1.cc (test01): Likewise.
+       * testsuite/27_io/basic_ostream/ends/char/1.cc (test01): Likewise.
+       * testsuite/tr1/2_general_utilities/memory/shared_ptr/
+       assign/shared_ptr.cc (test01): Correct return type.     
+       * testsuite/27_io/basic_filebuf/close/char/2.cc (test_02):
+       Add default value to close_num.
+
 2005-12-24  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_algobase.h (fill(const _Deque_iterator&,
index dabb9ce46a23523debe5512fb06a5f1931e0262f..ce3e675bc6a5afb7b275495f4304f31329b2c2f7 100644 (file)
@@ -60,7 +60,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
     public:
       ///  Construct end of input stream iterator.
       istream_iterator()
-      : _M_stream(0), _M_ok(false) {}
+      : _M_stream(0), _M_value(), _M_ok(false) {}
 
       ///  Construct start of input stream iterator.
       istream_iterator(istream_type& __s)
index 1abe16300cdefdeeef529fe720da4d9814401182..4f1c733d62ad8fe6f687daea80ecb730111b6c61 100644 (file)
@@ -154,7 +154,8 @@ namespace __gnu_debug
   template<typename _InputIterator>
     inline _InputIterator
     __check_valid_range(const _InputIterator& __first,
-                       const _InputIterator& __last)
+                       const _InputIterator& __last
+                       __attribute__((__unused__)))
     {
       _GLIBCXX_DEBUG_ASSERT(__valid_range(__first, __last));
       return __first;
@@ -163,7 +164,8 @@ namespace __gnu_debug
   /** Checks that __s is non-NULL or __n == 0, and then returns __s. */
   template<typename _CharT, typename _Integer>
     inline const _CharT*
-    __check_string(const _CharT* __s, const _Integer& __n)
+    __check_string(const _CharT* __s,
+                  const _Integer& __n __attribute__((__unused__)))
     {
 #ifdef _GLIBCXX_DEBUG_PEDANTIC
       _GLIBCXX_DEBUG_ASSERT(__s != 0 || __n == 0);
index 1b189c37ca6fec3e90831c5fd538e79e3837f6f6..fb7e370f954fd33abac721a07836e22f2f134b28 100644 (file)
@@ -631,7 +631,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       __mt_alloc(const __mt_alloc&) throw() { }
 
       template<typename _Tp1, typename _Poolp1>
-        __mt_alloc(const __mt_alloc<_Tp1, _Poolp1>& obj) throw() { }
+        __mt_alloc(const __mt_alloc<_Tp1, _Poolp1>&) throw() { }
 
       ~__mt_alloc() throw() { }
 
index ae31faef758a03342f8d8075afc6e5299a9f1538..a8e3d3cce7ebda5bf35ebf4d73b20e48ddf3f5b5 100644 (file)
@@ -1156,7 +1156,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
       static std::size_t
       hash(const char* first, std::size_t length)
       {
-       std::size_t result = 2166136261UL;
+       std::size_t result = static_cast<std::size_t>(2166136261UL);
        for (; length > 0; --length)
          {
            result ^= (std::size_t)*first++;
@@ -1172,7 +1172,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
       static std::size_t
       hash(const char* first, std::size_t length)
       {
-       std::size_t result = 14695981039346656037ULL;
+       std::size_t result = static_cast<std::size_t>(14695981039346656037ULL);
        for (; length > 0; --length)
          {
            result ^= (std::size_t)*first++;
index 70616146540fde4fd678f4f58ec03ce43ce92a3d..4cf4ae9c192e404b25133f9ac96716e5f2ef445f 100644 (file)
@@ -1103,7 +1103,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
       { return local_iterator(m_buckets[n]); }
   
       local_iterator
-      end(size_type n)
+      end(size_type)
       { return local_iterator(0); }
   
       const_local_iterator
@@ -1111,7 +1111,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1)
       { return const_local_iterator(m_buckets[n]); }
   
       const_local_iterator
-      end(size_type n) const
+      end(size_type) const
       { return const_local_iterator(0); }
 
       float
index 4ae56615ea939bc0d39a5b58dac1e47db2403be6..320073bda52d045ae15741fe5837b3043e64b3eb 100644 (file)
@@ -93,13 +93,13 @@ template<_GLIBCXX_TEMPLATE_PARAMS>
 
 #else
 
-    tuple(const tuple& __in)
+    tuple(const tuple&)
     { }
 
 #endif
 
     tuple&
-    operator=(const tuple& __in)
+    operator=(const tuple& __in __attribute__((__unused__)) )
     {
       _GLIBCXX_TUPLE_ASSIGN
         return *this;
index 040125128d2aa903f097583720c2549045400178..2d374e60fb0876712620a8d2163a88dca226c658 100644 (file)
@@ -27,12 +27,12 @@ struct s
 {
   void f_void_int_const(int) const {}
   void f_void_int(int) {}
-  int f_int_int_const(int) const {}
-  int f_int_int(int) {}
+  int f_int_int_const(int) const { return 1; }
+  int f_int_int(int) {return 1; }
   void f_void_void_const() const {}
   void f_void_void() {}
-  int f_int_void_const() const {}
-  int f_int_void() {}
+  int f_int_void_const() const { return 1; }
+  int f_int_void() { return 1; }
 };
 
 void test01(s& a)
index 18fd730dcc509262205b1cfd99a86acbf55a1873..3ea346996c391d1e3e3718568bf649c137db9258 100644 (file)
@@ -28,11 +28,11 @@ template<typename T>
 
 template<typename T>
   bool
-  operator==(const A<T>& a, const A<T>& b) { return true; }
+  operator==(const A<T>&, const A<T>&) { return true; }
 
 template<typename T>
   bool
-  operator<(const A<T>& a, const A<T>& b) { return true; }
+  operator<(const A<T>&, const A<T>&) { return true; }
 
 struct B { };
 
@@ -104,11 +104,11 @@ namespace std
       }
 
       static char_type 
-      to_char_type(const int_type& __c)
+      to_char_type(const int_type&)
       { return char_type(); }
 
       static int_type 
-      to_int_type(const char_type& __c) { return int_type(); }
+      to_int_type(const char_type&) { return int_type(); }
 
       static bool 
       eq_int_type(const int_type& __c1, const int_type& __c2)
index 905ea42b30ce12ef8d414509223d3988ee1c67ec..3af6372e0c555f85449ac4a127e7657d51ec64da 100644 (file)
@@ -39,15 +39,15 @@ public:
   do_is(mask, char_type) const { return true; }
 
   const char_type* 
-  do_is(const char_type* lo, const char_type* hi, mask* vec) const 
+  do_is(const char_type*, const char_type* hi, mask*) const 
   { return hi; }
 
   const char_type* 
-  do_scan_is(mask m, const char_type* lo, const char_type* hi) const 
+  do_scan_is(mask, const char_type*, const char_type* hi) const 
   { return hi; }
 
   const char_type* 
-  do_scan_not(mask m, const char_type* lo, const char_type* hi) const 
+  do_scan_not(mask, const char_type*, const char_type* hi) const 
   { return hi; }
 };
 
@@ -58,15 +58,15 @@ public:
   do_is(mask, char_type) const { called = 1; return true; }
 
   const char_type* 
-  do_is(const char_type* lo, const char_type* hi, mask* vec) const 
+  do_is(const char_type*, const char_type* hi, mask*) const 
   { called = 5; return hi; }
 
   const char_type* 
-  do_scan_is(mask m, const char_type* lo, const char_type* hi) const 
+  do_scan_is(mask, const char_type*, const char_type* hi) const 
   { called = 10; return hi; }
 
   const char_type* 
-  do_scan_not(mask m, const char_type* lo, const char_type* hi) const 
+  do_scan_not(mask, const char_type*, const char_type* hi) const 
   { called = 15; return hi; }
 };
 
index 396fc03d5e00671bd48305fc11137eae3d90729b..9f944cc1dfbdaacb7d4a96dac71096b6e732e4f3 100644 (file)
@@ -36,7 +36,7 @@ class Ctype1
 protected:
   const char*
   do_narrow(const char* lo, const char* hi,
-           char dflt, char* to) const 
+           char, char* to) const 
   {
     for (int i = 0; lo != hi; ++lo, ++to, ++i)
       *to = *lo + i;
index ec1f26da5d2dfb854231e3a56228a7732f213419..4680c7aecfa752f43b9b6b926d14d9c65b9dca0d 100644 (file)
@@ -31,7 +31,7 @@ public:
 
 protected:
   iter_type do_put(iter_type s, std::ios_base&, char_type fill,
-                  const std::tm* t, char format, char modifier) const
+                  const std::tm*, char, char) const
   {
     fill_chars.push_back(fill);
     return s;
index 80d5dbba24cdb74367b7e0405709ea7ebe5e42c0..4408565350e5d6f998a7808826a92d6e8519fc80 100644 (file)
@@ -29,8 +29,8 @@ public:
   mutable std::string format_chars;
 
 protected:
-  iter_type do_put(iter_type s, std::ios_base&, char_type fill,
-                  const std::tm* t, char format, char modifier) const
+  iter_type do_put(iter_type s, std::ios_base&, char_type,
+                  const std::tm*, char format, char) const
   {
     format_chars.push_back(format);
     return s;
index 8d7d96ea1df07fda471b00f5a2be75fb5fc0aa52..7ef4643875bec43fac13cd10dfa599024e7fe9b4 100644 (file)
@@ -31,7 +31,7 @@ public:
 
 protected:
   iter_type do_put(iter_type s, std::ios_base&, char_type fill,
-                  const std::tm* t, char format, char modifier) const
+                  const std::tm*, char, char) const
   {
     fill_chars.push_back(fill);
     return s;
index 696b900fa488db8a0809f02b82eb244e0fdb1e7c..82601e8295988658ba4151b735a4ff20bbb1699a 100644 (file)
@@ -29,8 +29,8 @@ public:
   mutable std::string format_chars;
 
 protected:
-  iter_type do_put(iter_type s, std::ios_base&, char_type fill,
-                  const std::tm* t, char format, char modifier) const
+  iter_type do_put(iter_type s, std::ios_base&, char_type,
+                  const std::tm*, char format, char) const
   {
     format_chars.push_back(format);
     return s;
index a523098d583d5c314e47d49c61f3fead0a2eab0c..863688f1cae4e22a9a39e4008503af780dfd35aa 100644 (file)
@@ -37,11 +37,11 @@ template<typename T>
     clear_alloc() throw()
     { }
     
-    clear_alloc(clear_alloc const& _wa) throw()
+    clear_alloc(clear_alloc const&) throw() : new_allocator<T>() 
     { }
     
     template<typename T1>
-    clear_alloc(clear_alloc<T1> const& _wa) throw()
+    clear_alloc(clear_alloc<T1> const&) throw()
       { }
 
     virtual ~clear_alloc() throw()
index 0d951570551fd9c09128a3c190662586f7736209..0a62618ef787cbae8c38909b68ff06e616c3b31c 100644 (file)
@@ -37,11 +37,11 @@ template<typename T>
     clear_alloc() throw()
     { }
     
-    clear_alloc(clear_alloc const& _wa) throw()
+    clear_alloc(clear_alloc const&) throw() : new_allocator<T>() 
     { }
     
     template<typename T1>
-      clear_alloc(clear_alloc<T1> const& _wa) throw()
+    clear_alloc(clear_alloc<T1> const&) throw()
       { }
 
     virtual ~clear_alloc() throw()
index 1571edebb487a646a57deae85c4668d071eb4092..2120f5bbff7a2072b59c00ee8bc0649adb67b5c3 100644 (file)
@@ -75,7 +75,7 @@ template<typename Container>
 
 template<typename Container>
   void
-  test_container(Container obj, bool run_threaded = false)
+  test_container(Container, bool run_threaded = false)
   {
     do_loop<Container>();
     std::ostringstream comment;
index 43601910b4f1fccc7b02db92b33077a821ab78b6..bbb6523808f2a79abb4dc332fd649f0bdc9c7622 100644 (file)
@@ -37,11 +37,11 @@ template<typename T>
     clear_alloc() throw()
     { }
     
-    clear_alloc(clear_alloc const& _wa) throw()
+    clear_alloc(clear_alloc const&) throw() : new_allocator<T>() 
     { }
     
     template<typename T1>
-      clear_alloc(clear_alloc<T1> const& _wa) throw()
+      clear_alloc(clear_alloc<T1> const&) throw()
       { }
 
     virtual ~clear_alloc() throw()
index 232fd34fb74af7e35bee662208fa109e11bf296a..787d2c09abb6a8283f01e9b2b1dafe7015f3c1eb 100644 (file)
@@ -37,11 +37,11 @@ template<typename T>
     clear_alloc() throw()
     { }
     
-    clear_alloc(clear_alloc const& _wa) throw()
+    clear_alloc(clear_alloc const&) throw() : new_allocator<T>() 
     { }
     
     template<typename T1>
-      clear_alloc(clear_alloc<T1> const& _wa) throw()
+    clear_alloc(clear_alloc<T1> const&) throw()
       { }
 
     virtual ~clear_alloc() throw()
index 0a3cffb90b20197d72fac06b6e09ecd9b700b71d..0b2d497fefddfd6f119fc9624b7d76ebaa52c2c3 100644 (file)
@@ -29,12 +29,12 @@ const int A2[] = {0, 2, 3, 4, 10, 11, 12, 13, 14, 15};
 const int A3[] = {0, 2, 3, 4, 10, 11};
 const int A4[] = {4, 10, 11};
 const int A5[] = {4, 10};
-const int  N = sizeof(A)  / sizeof(int);
-const int N1 = sizeof(A1) / sizeof(int);
-const int N2 = sizeof(A2) / sizeof(int);
-const int N3 = sizeof(A3) / sizeof(int);
-const int N4 = sizeof(A4) / sizeof(int);
-const int N5 = sizeof(A5) / sizeof(int);
+const unsigned int  N = sizeof(A)  / sizeof(int);
+const unsigned int N1 = sizeof(A1) / sizeof(int);
+const unsigned int N2 = sizeof(A2) / sizeof(int);
+const unsigned int N3 = sizeof(A3) / sizeof(int);
+const unsigned int N4 = sizeof(A4) / sizeof(int);
+const unsigned int N5 = sizeof(A5) / sizeof(int);
 
 void
 test01()
@@ -85,17 +85,17 @@ test02()
   typedef vec_type::iterator          iterator_type;
 
   vec_type v, v1, v2, v3, v4, v5;
-  for (int i = 0; i < N; ++i)
+  for (unsigned int i = 0; i < N; ++i)
     v.push_back(std::vector<int>(1, A[i]));
-  for (int i = 0; i < N1; ++i)
+  for (unsigned int i = 0; i < N1; ++i)
     v1.push_back(std::vector<int>(1, A1[i]));
-  for (int i = 0; i < N2; ++i)
+  for (unsigned int i = 0; i < N2; ++i)
     v2.push_back(std::vector<int>(1, A2[i]));
-  for (int i = 0; i < N3; ++i)
+  for (unsigned int i = 0; i < N3; ++i)
     v3.push_back(std::vector<int>(1, A3[i]));
-  for (int i = 0; i < N4; ++i)
+  for (unsigned int i = 0; i < N4; ++i)
     v4.push_back(std::vector<int>(1, A4[i]));
-  for (int i = 0; i < N5; ++i)
+  for (unsigned int i = 0; i < N5; ++i)
     v5.push_back(std::vector<int>(1, A5[i]));
   
   iterator_type it1 = v.erase(v.begin() + 1);
index 95a6db0864f60b5885c3fdd23b5c28981bf9b6c5..3d4b9066e7c16c17efa76e735cf0e9d507851bc2 100644 (file)
@@ -24,8 +24,8 @@ using namespace std;
 
 template<typename InputIterator, typename Tp>
   InputIterator
-  find(InputIterator first, InputIterator last,
-       const Tp& val, input_iterator_tag)
+  find(InputIterator first, InputIterator,
+       const Tp&, input_iterator_tag)
   { return first; }
 
 // libstdc++/17441
index e21f512d78487e36e6bfc8882d8c7a1e4514e789..01d9628edb8248c4bff1e611011fe27d3a2521fe 100644 (file)
@@ -47,7 +47,7 @@ test2()
 int int_swap_count;
 
 struct X {};
-void swap(X& i, X& j)
+void swap(X&, X&)
 { ++int_swap_count; }
 
 void
index fbaa5ec4d54a27f4fc39aa1c48e7fbac3c420416..efdc14796cdd5f22c084ad4373942c852e538504 100644 (file)
@@ -34,11 +34,11 @@ struct Z
 {
   Z&
   operator=(const X&)
-  { }
+  { return *this; }
 
   Z&
   operator=(const Y&)
-  { }
+  { return *this; }
 };
 
 bool
index 6191abb0ee378a0753c291d3a0be43d594c7fd2b..f95e2b9c8b15cdd6ed6c6d184fd3773bb4956f88 100644 (file)
@@ -34,11 +34,11 @@ struct Z
 {
   Z&
   operator=(const X&)
-  { }
+  { return *this; }
 
   Z&
   operator=(const Y&)
-  { }
+  { return *this; }
 };
 
 bool
index 5433b77d118638784da2880c280e357848f4d3d4..1fe11b189402f19c766930981bab4489e043fbf6 100644 (file)
@@ -30,7 +30,7 @@ struct S1 { };
 
 struct S2
 {
-  S2(const S1& s1) {}
+  S2(const S1&) {}
 };
 
 bool 
@@ -40,7 +40,7 @@ struct X1 { };
 
 struct X2
 {
-  X2(const X1& x1) {}
+  X2(const X1&) {}
 };
 
 bool 
index d5f0fa27a875c5dd57ddd35d8a1ff69e7f601d5b..4ce22afb31aa99f1d10a0590cb75a55878a63fde 100644 (file)
 
 bool check_array(std::valarray<double>& a, double b[])
 {
-  for (int i=0; i < a.size(); i++)
+  for (unsigned int i=0; i < a.size(); i++)
     if (a[i] != b[i]) return false;
   return true;
 }
 
 int main()
 {
-  double dvar = 1.0;
   std::valarray<double> val_d(10);  //  0 1 2 3 4 5 6 7 8 9 
   std::valarray<double> val_d1(10); // 10 9 8 7 6 5 4 3 2 1
 
index 3af0a735c90ade3becef520580311149785550aa..f96e041ecbb4be54efac551979407902c785db0d 100644 (file)
@@ -43,7 +43,7 @@ const char name_02[] = "filebuf_virtuals-2.txt"; // empty file, need to create
 void test_02()
 {
   bool test __attribute__((unused)) = true;
-  int close_num;
+  int close_num = 0;
 
   // read (ext)
   FILE* f2 = fopen(name_01, "r");
index 44c51b978e1136cf7d4fc2b5e11c8aebf30ed515..721e0333840c18d108dadccfe139b5b8639cb08b 100644 (file)
@@ -65,21 +65,21 @@ namespace std
     static locale::id id;
     
   protected:
-    virtual result do_out(mbstate_t&, const Char* from,
-                         const Char* from_end,
-                         const Char*& from_next, char* to,
-                         char* to_limit, char*& to_next) const
+    virtual result do_out(mbstate_t&, const Char*,
+                         const Char*,
+                         const Char*&, char*,
+                         char*, char*&) const
     { return ok; }
-    virtual result do_in(mbstate_t&, const char* from,
-                        const char* from_end,
-                        const char*& from_next, Char* to,
-                        Char* to_limit, Char*& to_next) const
+    virtual result do_in(mbstate_t&, const char*,
+                        const char*,
+                        const char*&, Char*,
+                        Char*, Char*&) const
     { return ok; }
-    virtual result do_unshift(mbstate_t&, char* to, char*,
-                             char*& to_next) const
+    virtual result do_unshift(mbstate_t&, char*, char*,
+                             char*&) const
     { return noconv; }
-    virtual int do_length(mbstate_t&, const char* from,
-                         const char* from_end, size_t max) const
+    virtual int do_length(mbstate_t&, const char*,
+                         const char*, size_t) const
     { return 1; }
     virtual int do_encoding() const throw()
     { return 1; }
index 90e76001a201b9c21c672e13066c080708e4c7e6..d55d6ad46c7205e56ae7d589907c71337aeb6fab 100644 (file)
@@ -100,11 +100,11 @@ namespace std
       }
 
       static char_type 
-      to_char_type(const int_type& __c)
+      to_char_type(const int_type&)
       { return char_type(); }
 
       static int_type 
-      to_int_type(const char_type& __c) { return int_type(); }
+      to_int_type(const char_type&) { return int_type(); }
 
       static bool 
       eq_int_type(const int_type& __c1, const int_type& __c2)
index e2cb0b9d647bf9fa49bb3f01a8b2d6cbb59b723e..dccaa9f938b90da64b62e1667fe1635644c5caa3 100644 (file)
@@ -49,7 +49,8 @@ void check(istream& stream, const string& str, unsigned nchunks, char delim)
   while (stream.getline(buf, sizeof(buf), delim))
     {
       index_new = str.find(delim, index);
-      VERIFY( stream.gcount() == index_new - index + 1 );
+      VERIFY( static_cast<string::size_type>(stream.gcount()) ==
+             index_new - index + 1 );
       VERIFY( !str.compare(index, index_new - index, buf) );
       index = index_new + 1;
       ++n;
index 3417b60699ef38054c8237fa89ac8038133b52fd..19cd94ff4a41af62d0841f3a9410ea33552ca83d 100644 (file)
@@ -51,7 +51,8 @@ check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim)
   while (stream.getline(buf, sizeof(buf) / sizeof(wchar_t), delim))
     {
       index_new = str.find(delim, index);
-      VERIFY( stream.gcount() == index_new - index + 1 );
+      VERIFY( static_cast<string::size_type>(stream.gcount()) ==
+              index_new - index + 1 );
       VERIFY( !str.compare(index, index_new - index, buf) );
       index = index_new + 1;
       ++n;
index b903b1b4304b3bfb46c02a3c51c16d9f4094a3ad..1ed3a8435e30eec428645f82272c6559958527a2 100644 (file)
@@ -49,7 +49,8 @@ void check(istream& stream, const string& str, unsigned nchunks, char delim)
   while (stream.ignore(numeric_limits<streamsize>::max(), delim).good())
     {
       index_new = str.find(delim, index);
-      VERIFY( stream.gcount() == index_new - index + 1 );
+      VERIFY( static_cast<string::size_type>(stream.gcount()) ==
+             index_new - index + 1 );
       index = index_new + 1;
       ++n;
     }
index 4b84af64d8ed9c49f2a015e64e171a85b56e1915..0107f87dcef1343056bc2a59ce9b467903c6d7d5 100644 (file)
@@ -51,7 +51,8 @@ check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim)
   while (stream.ignore(numeric_limits<streamsize>::max(), delim).good())
     {
       index_new = str.find(delim, index);
-      VERIFY( stream.gcount() == index_new - index + 1 );
+      VERIFY( static_cast<string::size_type>(stream.gcount()) ==
+             index_new - index + 1 );
       index = index_new + 1;
       ++n;
     }
index 2c547bda57e949ec4f0def7424a1fc97f7a40ead..8c14a5d47c7cbbd4f261ebb6a824804988483daa 100644 (file)
@@ -28,7 +28,6 @@ void test01(void)
 {
   bool test __attribute__((unused)) = true;
 
-  const char str_lit01[] = "  venice ";
   const std::string str01(" santa barbara ");
   std::string str04;
   std::string str05;
index d6de23b683523ecbbc77937f1087fffda9439e17..2214a7216bbd6e05369fcf070261ba2eeec05a99 100644 (file)
@@ -26,7 +26,6 @@ void test01(void)
 {
   bool test __attribute__((unused)) = true;
 
-  const wchar_t str_lit01[] = L"  venice ";
   const std::wstring str01(L" santa barbara ");
   std::wstring str04;
   std::wstring str05;
index ce64d6963efaf40a5474160d002bfee9d661a7e3..88ace74a7fa2d328e0f426e027504cee78e7c5fd 100644 (file)
@@ -28,7 +28,6 @@ void test01(void)
 {
   bool test __attribute__((unused)) = true;
 
-  const char str_lit01[] = "  venice ";
   const std::string str01(" santa barbara ");
   std::string str04;
   std::string str05;
index 55eeb5645532f78c5b001f27ba25fb979c13678e..babae552737560bb9eefd1f73789f01ec3d9bbb0 100644 (file)
@@ -26,7 +26,6 @@ void test01(void)
 {
   bool test __attribute__((unused)) = true;
 
-  const wchar_t str_lit01[] = L"  venice ";
   const std::wstring str01(L" santa barbara ");
   std::wstring str04;
   std::wstring str05;
index d73b2223ab2fa4705729d2444e6c5e33b48aac47..5ca3a2cb953742bb7aa695276206c2bc4ef2c079 100644 (file)
@@ -28,7 +28,6 @@ void test01(void)
 {
   bool test __attribute__((unused)) = true;
 
-  const char str_lit01[] = "  venice ";
   const std::string str01(" santa barbara ");
   std::string str04;
   std::string str05;
index 49551112aab86c2ce52116591ff21cefc73ed9ef..34847e5b54c0b209770ce7f4248721c9f12c538b 100644 (file)
@@ -26,7 +26,6 @@ void test01(void)
 {
   bool test __attribute__((unused)) = true;
 
-  const wchar_t str_lit01[] = L"  venice ";
   const std::wstring str01(L" santa barbara ");
   std::wstring str04;
   std::wstring str05;
index b91a09e78e5691f5d4f0bd7c92e630d354f78670..7ac042e92c95067e8342233a62053428d694eea5 100644 (file)
@@ -42,8 +42,8 @@ protected:
 
 void test01()
 {
-  bool test = true;
-
+  bool test __attribute__((unused)) = true;
+  
   Buf buf;
   std::ostream os(&buf);
 
index a7dc0539b150b42aa0d4fdfef4b585438f440494..c0d317e4e14cfa8d2ef93ba49a6b351ae5e37a1d 100644 (file)
@@ -40,8 +40,8 @@ protected:
 
 void test01()
 {
-  bool test = true;
-
+  bool test __attribute__((unused)) = true;
+  
   Buf buf;
   std::wostream os(&buf);
 
index 38d310fdf8f687512e8d3415cb1285689885c345..6ea710bab397f26a6cd89a50abb6b85db7458aea 100644 (file)
@@ -39,7 +39,7 @@ void test05()
   typedef size_t                       size_type;
 
   bool test __attribute__((unused)) = true;
-  std::streamoff                       strmof_1, strmof_2;
+  std::streamoff                       strmof_1;
   testbuf      sb01;
 
   // int in_avail()
index faf7e79b9db212ad333739361f81bbc61de9c341..d25c9c25e1c7ddcc550439aedb401b6553fc718a 100644 (file)
@@ -39,7 +39,7 @@ void test05()
   typedef size_t                       size_type;
 
   bool test __attribute__((unused)) = true;
-  std::streamoff                       strmof_1, strmof_2;
+  std::streamoff                       strmof_1;
   testbuf      sb01;
 
   // int in_avail()
index 64afd99a3c1ea40d05a51b635d8d3a9af4c9f17f..1d72d5d604d55d909e05d0245d9a2cffd94c0814 100644 (file)
@@ -53,7 +53,7 @@ void test01()
   // The constant 20 comes from __pool_alloc_base::_M_refill. See
   // also __pool_alloc_base::_M_allocate_chunk.
   __pool_alloc<small> alloc_small;
-  for (int i = 0; i < 20 * sizeof(big) / sizeof(small) + 1; ++i)
+  for (unsigned int i = 0; i < 20 * sizeof(big) / sizeof(small) + 1; ++i)
     alloc_small.allocate(1);
 }
 
index c43db15e4c344dd623ddae65f70ec0164557faca..a9e4847105b12d4c35762eeb8e8106a6ac8151d6 100644 (file)
@@ -323,7 +323,7 @@ namespace std
       { }
 
       virtual bool
-      do_is(mask m, char_type c) const
+      do_is(mask, char_type) const
       { return false; }
 
       virtual const char_type*
@@ -334,11 +334,11 @@ namespace std
       }
 
       virtual const char_type*
-      do_scan_is(mask m, const char_type* low, const char_type* high) const
+      do_scan_is(mask, const char_type*, const char_type* high) const
       { return high; }
 
       virtual const char_type*
-      do_scan_not(mask m, const char_type* low, const char_type* high) const
+      do_scan_not(mask, const char_type* low, const char_type*) const
       { return low; }
 
       virtual char_type
@@ -346,7 +346,7 @@ namespace std
       { return c; }
 
       virtual const char_type*
-      do_toupper(char_type*  low, const char_type*  high) const
+      do_toupper(char_type*, const char_type*  high) const
       { return high; }
 
       virtual char_type
@@ -354,7 +354,7 @@ namespace std
       { return c; }
 
       virtual const char_type*
-      do_tolower(char_type*  low, const char_type*  high) const
+      do_tolower(char_type*, const char_type*  high) const
       { return high; }
 
       virtual char_type
index fe8827ca164ce3844af4ba79afb778d5112f60c7..e6f1c03d6223ece8cbd154019b6230184e5cd125 100644 (file)
@@ -214,7 +214,7 @@ namespace __gnu_test
 
     protected:
       iter_type 
-      do_get(iter_type a, iter_type, ios_base&, ios_base::iostate&, bool&) const
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const
       { throw facet_error(); return iter_type(); }
 
       virtual iter_type 
@@ -222,49 +222,49 @@ namespace __gnu_test
       { throw facet_error(); return iter_type(); }
       
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             unsigned short&) const
       { throw facet_error(); return iter_type(); }
       
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             unsigned int&) const
       { throw facet_error(); return iter_type(); }
       
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             unsigned long&) const
       { throw facet_error(); return iter_type(); }
 
 #ifdef _GLIBCXX_USE_LONG_LONG 
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             long long&) const
       { throw facet_error(); return iter_type(); }
       
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             unsigned long long&) const
       { throw facet_error(); return iter_type(); }
 #endif
 
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             float&) const
       { throw facet_error(); return iter_type(); }
       
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             double&) const
       { throw facet_error(); return iter_type(); }
       
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             long double&) const
       { throw facet_error(); return iter_type(); }
       
       virtual iter_type 
-      do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err
+      do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 
             void*&) const
       { throw facet_error(); return iter_type(); }
     };
@@ -284,37 +284,37 @@ namespace __gnu_test
 
     protected:
       iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, bool __v) const
+      do_put(iter_type, ios_base&, char_type, bool) const
       { throw facet_error(); return iter_type(NULL); }
       
       virtual iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, long __v) const
+      do_put(iter_type, ios_base&, char_type, long) const
       { throw facet_error(); return iter_type(NULL); }
 
       virtual iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, unsigned long) const
+      do_put(iter_type, ios_base&, char_type, unsigned long) const
       { throw facet_error(); return iter_type(NULL); }
 
 #ifdef _GLIBCXX_USE_LONG_LONG 
       virtual iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, long long __v) const
+      do_put(iter_type, ios_base&, char_type, long long) const
       { throw facet_error(); return iter_type(NULL); }
 
       virtual iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, unsigned long long) const
+      do_put(iter_type, ios_base&, char_type, unsigned long long) const
       { throw facet_error(); return iter_type(NULL); }
 #endif
       
       virtual iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, double __v) const
+      do_put(iter_type, ios_base&, char_type, double) const
       { throw facet_error(); return iter_type(NULL); }
 
       virtual iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, long double __v) const
+      do_put(iter_type, ios_base&, char_type, long double) const
       { throw facet_error(); return iter_type(NULL); }
       
       virtual iter_type 
-      do_put(iter_type, ios_base&, char_type __fill, const void* __v) const
+      do_put(iter_type, ios_base&, char_type, const void*) const
       { throw facet_error(); return iter_type(NULL); }
     };
 
index ef8bff4a3a6a06751f0077b73c7410c975439994..7119783c93b0e08865b6b38123e80041c825f67e 100644 (file)
@@ -144,6 +144,7 @@ namespace __gnu_test
     {
       ptr = in.ptr;
       SharedInfo = in.SharedInfo;
+      return *this;
     }
 
     output_iterator_wrapper&
@@ -394,6 +395,7 @@ namespace __gnu_test
     {
       this->ptr = in.ptr;
       this->SharedInfo = in.SharedInfo;
+      return *this;
     }
 
     random_access_iterator_wrapper&
index 17181e58a565560858e97ddeab1458f28ad42ec0..93f90ce57ea8d30bb7faee7ee6dc5c1a4a4fe100 100644 (file)
@@ -44,7 +44,7 @@ struct reset_count_struct
 // 2.2.3.3 shared_ptr assignment [tr.util.smartptr.shared.assign]
 
 // Assignment from shared_ptr<Y>
-int
+void
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
index 90765aa5d2ce8bf7a70fccb011186c01db44f5ad..90ab7eec03f92c64b35ae53b4fbbaad1cffe0b90 100644 (file)
@@ -57,7 +57,7 @@ struct reset_count_struct
 // 2.2.3.3 shared_ptr assignment [tr.util.smartptr.shared.assign]
 
 // Assignment from shared_ptr<Y>
-int
+void
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;