[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#322170: libstdc++6: bits/stl_tree.h isn't -Weffc++ clean



Package: libstdc++6
Version: 4.0.1-2
Severity: normal
Tags: patch



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libstdc++6 depends on:
ii  gcc-4.0-base                4.0.1-2      The GNU Compiler Collection (base
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgcc1                     1:4.0.1-2    GCC support library

libstdc++6 recommends no packages.

-- no debconf information

Warning is "_M_header should be initialized in the member intialization
list". Ok, patch follows:

--- /usr/include/c++/4.0.1/bits/stl_tree.h~     2005-07-12 06:15:28.000000000 +0200
+++ /usr/include/c++/4.0.1/bits/stl_tree.h      2005-08-09 15:43:32.000000000 +0200
@@ -401,7 +401,7 @@

          _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;


-- 
Marc Mutz -- marc@klaralvdalens-datakonsult.se, mutz@kde.org
phone: +49 521 521 45 45; mobile: +49 177 32 94 700
Klarälvdalens Datakonsult AB, Platform-independent software solutions




Reply to: