Boost logo

Boost Users :

Subject: [Boost-users] Warnings in hash_table_impl.hpp with GCC 4.4.x
From: Marco Alanen (marco.alanen_at_[hidden])
Date: 2009-10-21 09:49:13


Greetings

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

Is this problem patchable, or will it manifest itself throughout the code? One
way would of course be to turn that particular warning off but I'd prefer to
have all warnings enabled if possible.
I also tried to compile with Boost 1.39.0 with the same results.

 Thank you /Marco


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