aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2005-09-18 13:39:25 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2005-09-18 13:39:25 +0000
commit3d480e2f812819f10f8d0ff245ae1eb0e94e3186 (patch)
tree4409dc2f3ee17e96f2b850d65f4f34a6ad9e28ec
parent1ed09f0225c3d90a21e9e437695da4cda0bc30da (diff)
downloadgcc-3d480e2f812819f10f8d0ff245ae1eb0e94e3186.zip
gcc-3d480e2f812819f10f8d0ff245ae1eb0e94e3186.tar.gz
gcc-3d480e2f812819f10f8d0ff245ae1eb0e94e3186.tar.bz2
PR libstdc++/23417 (cont)
2005-09-18 Paolo Carlini <pcarlini@suse.de> PR libstdc++/23417 (cont) * include/bits/stl_tree.h (_Rb_tree_impl<true>): Use member initialization list for -Weffc++. From-SVN: r104401
-rw-r--r--libstdc++-v3/ChangeLog42
-rw-r--r--libstdc++-v3/include/bits/stl_tree.h3
2 files changed, 26 insertions, 19 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 4f618d0..8dec8fd 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-18 Paolo Carlini <pcarlini@suse.de>
+
+ PR libstdc++/23417 (cont)
+ * include/bits/stl_tree.h (_Rb_tree_impl<true>): Use member
+ initialization list for -Weffc++.
+
2005-09-16 Janis Johnson <janis187@us.ibm.com>
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/23871.cc:
@@ -216,24 +222,24 @@
2005-09-01 Benjamin Kosnik <bkoz@redhat.com>
- * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): New.
- * testsuite/lib/dg-options.exp (dg-require-cxa-atexit): New.
- * testsuite/ext/mt_allocator/deallocate_local-6.cc: New.
- * testsuite/ext/mt_allocator/deallocate_local-8.cc: New.
- * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: New.
- * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: New.
- * docs/html/ext/mt_allocator.html: Add link to examples.
- * testsuite/testsuite_allocator.h: Tweak.
- * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
- * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
- * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
- * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
- * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
- * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
- * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
- * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
- * testsuite/ext/new_allocator/deallocate_global.cc: Same.
- * testsuite/ext/new_allocator/deallocate_local.cc: Same.
+ * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): New.
+ * testsuite/lib/dg-options.exp (dg-require-cxa-atexit): New.
+ * testsuite/ext/mt_allocator/deallocate_local-6.cc: New.
+ * testsuite/ext/mt_allocator/deallocate_local-8.cc: New.
+ * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: New.
+ * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: New.
+ * docs/html/ext/mt_allocator.html: Add link to examples.
+ * testsuite/testsuite_allocator.h: Tweak.
+ * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
+ * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
+ * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
+ * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
+ * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
+ * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
+ * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
+ * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
+ * testsuite/ext/new_allocator/deallocate_global.cc: Same.
+ * testsuite/ext/new_allocator/deallocate_local.cc: Same.
2005-08-31 Paolo Carlini <pcarlini@suse.de>
Kaspar Fischer <fischerk@inf.ethz.ch>
diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h
index e5a5673..45d27b5 100644
--- a/libstdc++-v3/include/bits/stl_tree.h
+++ b/libstdc++-v3/include/bits/stl_tree.h
@@ -424,7 +424,8 @@ namespace std
_Rb_tree_impl(const _Node_allocator& __a = _Node_allocator(),
const _Key_compare& __comp = _Key_compare())
- : _Node_allocator(__a), _M_key_compare(__comp), _M_node_count(0)
+ : _Node_allocator(__a), _M_key_compare(__comp), _M_header(),
+ _M_node_count(0)
{
this->_M_header._M_color = _S_red;
this->_M_header._M_parent = 0;