From: Paolo Carlini Date: Sun, 18 Sep 2005 13:39:25 +0000 (+0000) Subject: PR libstdc++/23417 (cont) X-Git-Tag: misc/cutover-cvs2svn~569 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d480e2f812819f10f8d0ff245ae1eb0e94e3186;p=thirdparty%2Fgcc.git PR libstdc++/23417 (cont) 2005-09-18 Paolo Carlini PR libstdc++/23417 (cont) * include/bits/stl_tree.h (_Rb_tree_impl): Use member initialization list for -Weffc++. From-SVN: r104401 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4f618d01d121..8dec8fd3a6ae 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2005-09-18 Paolo Carlini + + PR libstdc++/23417 (cont) + * include/bits/stl_tree.h (_Rb_tree_impl): Use member + initialization list for -Weffc++. + 2005-09-16 Janis Johnson * testsuite/27_io/basic_ostream/inserters_arithmetic/char/23871.cc: @@ -216,24 +222,24 @@ 2005-09-01 Benjamin Kosnik - * 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 Kaspar Fischer diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h index e5a56737978a..45d27b50b2ae 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;