Ticket #9901: 0002-spirit-fix-GCC-4.8-Wunused-local-typedefs-warnings.patch

File 0002-spirit-fix-GCC-4.8-Wunused-local-typedefs-warnings.patch, 3.6 KB (added by mstahl@…, 9 years ago)
  • include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp

    From be100c31fcf7f82c789eaf84013e06fcc7dcc0ae Mon Sep 17 00:00:00 2001
    From: Stephan Bergmann <sbergman@redhat.com>
    Date: Sun, 13 Apr 2014 23:23:46 +0200
    Subject: [PATCH 2/2] spirit: fix GCC 4.8 -Wunused-local-typedefs warnings
    
    Signed-off-by: Michael Stahl <mstahl@redhat.com>
    ---
     include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp | 2 +-
     include/boost/spirit/home/classic/core/primitives/primitives.hpp     | 1 -
     include/boost/spirit/home/classic/error_handling/exceptions.hpp      | 1 -
     include/boost/spirit/home/classic/utility/functor_parser.hpp         | 2 --
     4 files changed, 1 insertion(+), 5 deletions(-)
    
    diff --git a/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp b/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp
    index b26f534..b00e2b4 100644
    a b struct grammar_definition  
    282282#if !defined(BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE)
    283283        typedef impl::grammar_helper_base<GrammarT> helper_base_t;
    284284        typedef grammar_helper_list<GrammarT> helper_list_t;
    285         typedef typename helper_list_t::vector_t::reverse_iterator iterator_t;
    286285
    287286        helper_list_t&  helpers =
    288287        grammartract_helper_list::do_(self);
    289288
    290289# if defined(BOOST_INTEL_CXX_VERSION)
     290        typedef typename helper_list_t::vector_t::reverse_iterator iterator_t;
    291291        for (iterator_t i = helpers.rbegin(); i != helpers.rend(); ++i)
    292292            (*i)->undefine(self);
    293293# else
  • include/boost/spirit/home/classic/core/primitives/primitives.hpp

    diff --git a/include/boost/spirit/home/classic/core/primitives/primitives.hpp b/include/boost/spirit/home/classic/core/primitives/primitives.hpp
    index d89585b..cd87c3d 100644
    a b BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN  
    4747        typename parser_result<self_t, ScannerT>::type
    4848        parse(ScannerT const& scan) const
    4949        {
    50             typedef typename parser_result<self_t, ScannerT>::type result_t;
    5150            typedef typename ScannerT::value_t value_t;
    5251            typedef typename ScannerT::iterator_t iterator_t;
    5352
  • include/boost/spirit/home/classic/error_handling/exceptions.hpp

    diff --git a/include/boost/spirit/home/classic/error_handling/exceptions.hpp b/include/boost/spirit/home/classic/error_handling/exceptions.hpp
    index 4d7cb76..11dd45b 100644
    a b BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN  
    140140        parse(ScannerT const& scan) const
    141141        {
    142142            typedef typename parser_result<ParserT, ScannerT>::type result_t;
    143             typedef typename ScannerT::iterator_t iterator_t;
    144143
    145144            result_t hit = this->subject().parse(scan);
    146145            if (!hit)
  • include/boost/spirit/home/classic/utility/functor_parser.hpp

    diff --git a/include/boost/spirit/home/classic/utility/functor_parser.hpp b/include/boost/spirit/home/classic/utility/functor_parser.hpp
    index ac53751..e991eaf 100644
    a b BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN  
    4949        typename parser_result<self_t, ScannerT>::type
    5050        parse(ScannerT const& scan) const
    5151        {
    52             typedef typename parser_result<self_t, ScannerT>::type result_t;
    53             typedef typename ScannerT::value_t      value_t;
    5452            typedef typename ScannerT::iterator_t   iterator_t;
    5553
    5654            iterator_t const s(scan.first);