aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2005-09-12 20:32:54 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2005-09-12 20:32:54 +0000
commitdda6e8cd3a8f81a42485f9a78cb3c8c3b0103307 (patch)
tree08379c0e395453bbfa0d6b1445dac0dfd47ee0a4 /libstdc++-v3
parentd63d5d0c32c03cd13765216b9107414849b1f05d (diff)
downloadgcc-dda6e8cd3a8f81a42485f9a78cb3c8c3b0103307.zip
gcc-dda6e8cd3a8f81a42485f9a78cb3c8c3b0103307.tar.gz
gcc-dda6e8cd3a8f81a42485f9a78cb3c8c3b0103307.tar.bz2
re PR libstdc++/23417 (bits/stl_tree.h isn't -Weffc++ clean)
2005-09-12 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/23417 * include/bits/stl_list.h (_List_impl): Use member initialization list for -Weffc++. * include/bits/stl_tree.h (_Rb_tree_impl): Same. From-SVN: r104191
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog1
-rw-r--r--libstdc++-v3/include/bits/stl_tree.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9b96940..4c8db92 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -3,6 +3,7 @@
PR libstdc++/23417
* include/bits/stl_list.h (_List_impl): Use member initialization
list for -Weffc++.
+ * include/bits/stl_tree.h (_Rb_tree_impl): Same.
2005-09-12 Paolo Carlini <pcarlini@suse.de>
diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h
index fab8117..e5a5673 100644
--- a/libstdc++-v3/include/bits/stl_tree.h
+++ b/libstdc++-v3/include/bits/stl_tree.h
@@ -403,7 +403,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;