[Boost-bugs] [Boost C++ Libraries] #8888: [python] GCC 4.8+ warns about unused local typedef

Subject: [Boost-bugs] [Boost C++ Libraries] #8888: [python] GCC 4.8+ warns about unused local typedef
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-23 14:31:41


#8888: [python] GCC 4.8+ warns about unused local typedef
---------------------------------------+---------------------
 Reporter: Petr Machata <pmachata@…> | Owner: rwgk
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Python
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
---------------------------------------+---------------------
 During the build of Boost, GCC warns about several unused typedefs in
 Boost.Python. There are many of these that seem like they should be
 converted to BOOST_STATIC_ASSERT, like this one for example.
 {{{
 ./boost/python/cast.hpp:73:20: warning: typedef 'must_be_a_complete_type'
 locally defined but not used [-Wunused-local-typedefs]
        typedef char must_be_a_complete_type[sizeof(T)];
 }}}
 There's at least one other instance of this problem that I know of. Shall
 I prepare a patch for this, or is this undesirable for some reason?

 In the mean time, I'm attaching a patch for another one.

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