[Boost-bugs] [Boost C++ Libraries] #5706: Gcc 4.6 warnings for Boost Graph

Subject: [Boost-bugs] [Boost C++ Libraries] #5706: Gcc 4.6 warnings for Boost Graph
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-17 11:07:21


#5706: Gcc 4.6 warnings for Boost Graph
--------------------------------------+-------------------------------------
 Reporter: ramon.casellas@… | Owner: asutton
     Type: Feature Requests | Status: new
Milestone: Boost 1.48.0 | Component: graph
  Version: Boost Development Trunk | Severity: Optimization
 Keywords: uninitialized warnings |
--------------------------------------+-------------------------------------
 Dear authors,

 Compiling our applications with newest gcc-4.6- some warnings regarding
 boost graph are displayed. We would appreciate if you could silence them.

 Please find below gcc output

 Ubuntu oneiric 64 bits boost 1.47/ trunk , gcc Using built-in specs.
 COLLECT_GCC=gcc
 COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1
 /lto-wrapper
 Target: x86_64-linux-gnu


 {{{

 /adnet/boost-1.47.0/include/boost/graph/detail/adj_list_edge_iterator.hpp:
 In member function ‘void boost::vec_adj_list_impl<Graph, Config,
 Base>::copy_impl(const boost::vec_adj_list_impl<Graph, Config, Base>&)
 [with Graph = boost::adjacency_list<boost::vecS, boost::vecS,
 boost::directedS, pce::te::node_te_attributes,
 pce::te::link_te_attributes, pce::te::graph_te_attributes, boost::listS>,
 Config = boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS,
 boost::vecS, boost::directedS, pce::te::node_te_attributes,
 pce::te::link_te_attributes, pce::te::graph_te_attributes, boost::listS>,
 boost::vecS, boost::vecS, boost::directedS,
 boost::property<boost::vertex_bundle_t, pce::te::node_te_attributes,
 boost::no_property>, boost::property<boost::edge_bundle_t,
 pce::te::link_te_attributes, boost::no_property>,
 pce::te::graph_te_attributes, boost::listS>::config, Base =
 boost::directed_graph_helper<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS,
 boost::vecS, boost::directedS, pce::te::node_te_attributes,
 pce::te::link_te_attributes, pce::te::graph_te_attributes, boost::listS>,
 boost::vecS, boost::vecS, boost::directedS,
 boost::property<boost::vertex_bundle_t, pce::te::node_te_attributes,
 boost::no_property>, boost::property<boost::edge_bundle_t,
 pce::te::link_te_attributes, boost::no_property>,
 pce::te::graph_te_attributes, boost::listS>::config>,
 boost::vec_adj_list_impl<Graph, Config, Base> =
 boost::vec_adj_list_impl<boost::adjacency_list<boost::vecS, boost::vecS,
 boost::directedS, pce::te::node_te_attributes,
 pce::te::link_te_attributes, pce::te::graph_te_attributes, boost::listS>,
 boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS,
 boost::vecS, boost::directedS, pce::te::node_te_attributes,
 pce::te::link_te_attributes, pce::te::graph_te_attributes, boost::listS>,
 boost::vecS, boost::vecS, boost::directedS,
 boost::property<boost::vertex_bundle_t, pce::te::node_te_attributes,
 boost::no_property>, boost::property<boost::edge_bundle_t,
 pce::te::link_te_attributes, boost::no_property>,
 pce::te::graph_te_attributes, boost::listS>::config,
 boost::directed_graph_helper<boost::detail::adj_list_gen<boost::adjacency_list<boost::vecS,
 boost::vecS, boost::directedS, pce::te::node_te_attributes,
 pce::te::link_te_attributes, pce::te::graph_te_attributes, boost::listS>,
 boost::vecS, boost::vecS, boost::directedS,
 boost::property<boost::vertex_bundle_t, pce::te::node_te_attributes,
 boost::no_property>, boost::property<boost::edge_bundle_t,
 pce::te::link_te_attributes, boost::no_property>,
 pce::te::graph_te_attributes, boost::listS>::config> >]’:
 /adnet/boost-1.47.0/include/boost/graph/detail/adj_list_edge_iterator.hpp:95:84:
 warning: ‘*((void*)& ei_end +32)’ may be used uninitialized in this
 function [-Wuninitialized]
 /adnet/boost-1.47.0/include/boost/graph/detail/adjacency_list.hpp:2128:27:
 note: ‘*((void*)& ei_end +32)’ was declared here
 /adnet/boost-1.47.0/include/boost/graph/detail/adj_list_edge_iterator.hpp:70:9:
 warning: ‘*((void*)(&
 ei)+48).__gnu_cxx::__normal_iterator<boost::detail::sep_<long unsigned
 int, boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> >*, std::vector<boost::detail::sep_<long unsigned int,
 boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> >, std::allocator<boost::detail::sep_<long unsigned
 int, boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> > > > >::_M_current’ may be used uninitialized in this
 function [-Wuninitialized]
 /adnet/boost-1.47.0/include/boost/graph/detail/adjacency_list.hpp:2128:23:
 note: ‘*((void*)(&
 ei)+48).__gnu_cxx::__normal_iterator<boost::detail::sep_<long unsigned
 int, boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> >*, std::vector<boost::detail::sep_<long unsigned int,
 boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> >, std::allocator<boost::detail::sep_<long unsigned
 int, boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> > > > >::_M_current’ was declared here
 /adnet/boost-1.47.0/include/boost/graph/detail/adjacency_list.hpp:2117:19:
 warning: ‘*((void*)(&
 ei)+32).__gnu_cxx::__normal_iterator<boost::detail::sep_<long unsigned
 int, boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> >*, std::vector<boost::detail::sep_<long unsigned int,
 boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> >, std::allocator<boost::detail::sep_<long unsigned
 int, boost::property<boost::edge_bundle_t, pce::te::link_te_attributes,
 boost::no_property> > > > >::_M_current’ may be used uninitialized in this
 function [-Wuninitialized]
 }}}

 Thank you in advance and best regards

 R.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5706>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC