Ticket #4013: boost_exception_gcc_warning_cleanup.diff

File boost_exception_gcc_warning_cleanup.diff, 1.0 KB (added by Tatu Kilappa <tatu.kilappa@…>, 13 years ago)
  • boost/throw_exception.hpp

     
    4747    namespace
    4848    exception_detail
    4949    {
     50#if BOOST_WORKAROUND(__GNUC__, >= 3)
     51                                template <class E>
     52        void
     53        throw_exception_( E const & x, char const * current_function, char const * file, int line ) __attribute__((noreturn));
     54#endif
    5055        template <class E>
    5156        void
    5257        throw_exception_( E const & x, char const * current_function, char const * file, int line )
  • boost/exception/exception.hpp

     
    415415
    416416            void
    417417            rethrow() const
     418#if BOOST_WORKAROUND(__GNUC__, >= 3)
     419                                                __attribute__((noreturn))
     420#endif
     421
    418422                {
    419423                throw*this;
    420424                }