[Boost-bugs] [Boost C++ Libraries] #8971: -Wunused-local-typedefs warnings with GCC 4.8.1

Subject: [Boost-bugs] [Boost C++ Libraries] #8971: -Wunused-local-typedefs warnings with GCC 4.8.1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-06 11:41:53


#8971: -Wunused-local-typedefs warnings with GCC 4.8.1
------------------------------------------+--------------------------------
 Reporter: Torquil Sørensen <torquil@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost Development
 Severity: Problem | Trunk
                                          | Keywords:
------------------------------------------+--------------------------------
 I'm getting many warnings "-Wunused-local-typedefs" when compiling with
 GCC 4.8.1 using the latest Boost SVN sources:

 {{{
 /mn/anatu/cma-u3/tmac/usr/include/boost/multi_array/concept_checks.hpp: In
 static member function ‘static void
 boost::multi_array_concepts::detail::idgen_helper<N>::call(Array&, const
 IdxGen&, Call_Type)’:
 /mn/anatu/cma-u3/tmac/usr/include/boost/multi_array/concept_checks.hpp:42:43:
 warning: typedef ‘index_range’ locally defined but not used [-Wunused-
 local-typedefs]
        typedef typename Array::index_range index_range;
                                            ^
 /mn/anatu/cma-u3/tmac/usr/include/boost/multi_array/concept_checks.hpp:43:37:
 warning: typedef ‘index’ locally defined but not used [-Wunused-local-
 typedefs]
        typedef typename Array::index index;
                                      ^
 /mn/anatu/cma-u3/tmac/usr/include/boost/multi_array/concept_checks.hpp: In
 static member function ‘static void
 boost::multi_array_concepts::detail::idgen_helper<0ul>::call(Array&, const
 IdxGen&, Call_Type)’:
 /mn/anatu/cma-u3/tmac/usr/include/boost/multi_array/concept_checks.hpp:53:43:
 warning: typedef ‘index_range’ locally defined but not used [-Wunused-
 local-typedefs]
        typedef typename Array::index_range index_range;
                                            ^
 /mn/anatu/cma-u3/tmac/usr/include/boost/multi_array/concept_checks.hpp:54:37:
 warning: typedef ‘index’ locally defined but not used [-Wunused-local-
 typedefs]
        typedef typename Array::index index;
 }}}

 and

 {{{
 /mn/anatu/cma-u3/tmac/usr/include/boost/tuple/detail/tuple_basic.hpp: In
 function ‘typename boost::tuples::access_traits<typename
 boost::tuples::element<N, boost::tuples::cons<HT, TT> >::type>::const_type
 boost::tuples::get(const boost::tuples::cons<HT, TT>&)’:
 /mn/anatu/cma-u3/tmac/usr/include/boost/tuple/detail/tuple_basic.hpp:228:45:
 warning: typedef ‘cons_element’ locally defined but not used [-Wunused-
 local-typedefs]
    typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
 }}}

 and

 {{{
 /mn/anatu/cma-u3/tmac/usr/include/boost/bind/arg.hpp: In constructor
 â€˜boost::arg<I>::arg(const T&)’:
 /mn/anatu/cma-u3/tmac/usr/include/boost/bind/arg.hpp:37:22: warning:
 typedef ‘T_must_be_placeholder’ locally defined but not used [-Wunused-
 local-typedefs]
          typedef char T_must_be_placeholder[ I ==
 is_placeholder<T>::value? 1: -1 ];
 }}}

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