Boost logo

Boost Users :

Subject: Re: [Boost-users] Warnings in hash_table_impl.hpp with GCC 4.4.x
From: Daniel James (daniel_james_at_[hidden])
Date: 2009-10-21 15:21:23


On Wed, Oct 21, 2009 at 2:49 PM, Marco Alanen <marco.alanen_at_[hidden]> wrote:

> I'm trying to compile our code in an environment where we treat warnings as
> errors. This worked fine when we used GCC 4.1.2 which is fairly forgiving when
> compared to newer versions. However, after upgrading to GCC 4.4.1 (and 4.4.2) we
> ran into a warning in hash_table_impl.hpp in Boost 1.40.0:
>
> .../include/boost/unordered/detail/hash_table_impl.hpp: In member function
> 'void boost::unordered_detail::hash_table_data_equivalent_keys<Alloc>::
> node_constructor::construct_preamble() [with Alloc = std::allocator<std::pair
> <const unsigned int, GFL::refcounted_value<const std::basic_string<char, std::
> char_traits<char>, std::allocator<char> > > > >]':
> .../include/boost/unordered/detail/hash_table_impl.hpp:101: error: '<anonymous>'
> may be used uninitialized in this function

Place could you send an example of code that triggers this warning, as
I don't get it. Also, it's a bit confusing as the warning says line
101 while construct_preamble starts at line 184 so can you post the
whole of the error?

Daniel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net