]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/23417 (bits/stl_tree.h isn't -Weffc++ clean)
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 12 Sep 2005 19:48:04 +0000 (19:48 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 12 Sep 2005 19:48:04 +0000 (19:48 +0000)
2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/23417
* include/bits/stl_list.h (_List_impl): Use member initialization
list for -Weffc++.

From-SVN: r104187

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_list.h

index eff6539893074953bac446870686ba64dbd1c6ca..9b969403f58d6c9d509fa3662bb5899c50a69e6f 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/23417
+       * include/bits/stl_list.h (_List_impl): Use member initialization
+       list for -Weffc++.
+
 2005-09-12  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/23767
index 6aa67fe55fd8043fec4eeddcf06abfadf06ff80b..3d954e980940522c6a60cac314b3818a262e91db 100644 (file)
@@ -303,8 +303,9 @@ namespace _GLIBCXX_STD
       : public _Node_alloc_type
       {
        _List_node_base _M_node;
+
        _List_impl(const _Node_alloc_type& __a)
-       : _Node_alloc_type(__a)
+       : _Node_alloc_type(__a), _M_node()
        { }
       };