[Boost-bugs] [Boost C++ Libraries] #8767: Unused variable warnings

Subject: [Boost-bugs] [Boost C++ Libraries] #8767: Unused variable warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-03 00:05:49


#8767: Unused variable warnings
------------------------------+----------------------
 Reporter: rmann@… | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------
 Similar to bug https://svn.boost.org/trac/boost/ticket/6926, building
 Boost 1.53 with Xcode 4.6.3 gives many warnings like the following:

 In file included from ...lib/../../../eos/mesh/face_graph.cpp:1:
 In file included from
 ...lib/boost_1_53_0/boost/graph/connected_components.hpp:15:
 In file included from
 ...lib/boost_1_53_0/boost/graph/depth_first_search.hpp:21:
 ...lib/boost_1_53_0/boost/graph/named_function_params.hpp:335:7: warning:
 unused variable '_weight_map' [-Wunused-variable]
       BOOST_BGL_DECLARE_NAMED_PARAMS
       ^
 ...lib/boost_1_53_0/boost/graph/named_function_params.hpp:63:5: note:
 expanded from macro 'BOOST_BGL_DECLARE_NAMED_PARAMS'
     BOOST_BGL_ONE_PARAM_CREF(weight_map, edge_weight) \
     ^
 ...lib/boost_1_53_0/boost/graph/named_function_params.hpp:334:45: note:
 expanded from macro 'BOOST_BGL_ONE_PARAM_CREF'
 #define BOOST_BGL_ONE_PARAM_CREF(name, key) BOOST_PARAMETER_NAME(name)
                                             ^
 ...lib/boost_1_53_0/boost/parameter/name.hpp:139:9: note: expanded from
 macro 'BOOST_PARAMETER_NAME'
       , BOOST_PARAMETER_SIMPLE_NAME \
         ^
 note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0
 to see all)
 <scratch space>:113:1: note: expanded from macro '_'
 _weight_map
 ^
 ...lib/boost_1_53_0/boost/parameter/name.hpp:110:53: note: expanded from
 macro 'BOOST_PARAMETER_BASIC_NAME'
     BOOST_PARAMETER_NAME_OBJECT(tag_namespace::tag, name)
                                                     ^
 ...lib/boost_1_53_0/boost/parameter/name.hpp:86:48: note: expanded from
 macro 'BOOST_PARAMETER_NAME_OBJECT'
        ::boost::parameter::keyword<tag> const& name \
                                                ^

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8767>
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:13 UTC