diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-18 13:39:25 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-18 13:39:25 +0000 |
commit | aadd478b72daf4626902344148a35ca2cb555410 (patch) | |
tree | 4409dc2f3ee17e96f2b850d65f4f34a6ad9e28ec /libstdc++-v3 | |
parent | 6f76fe2aa846c38daebaf45737afdff33483637e (diff) | |
download | gcc-aadd478b72daf4626902344148a35ca2cb555410.tar.gz |
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++.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104401 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 42 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_tree.h | 3 |
2 files changed, 26 insertions, 19 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4f618d01d12..8dec8fd3a6a 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 e5a56737978..45d27b50b2a 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; |