Author: mlandres Date: Mon May 7 23:53:20 2007 New Revision: 5513 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5513&view=rev Log: Add attribute noreturn to ZYPP_THROW and ZYPP_RETHROW Modified: trunk/libzypp/zypp/base/Exception.h Modified: trunk/libzypp/zypp/base/Exception.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/base/Exception.h?rev=5513&r1=5512&r2=5513&view=diff ============================================================================== --- trunk/libzypp/zypp/base/Exception.h (original) +++ trunk/libzypp/zypp/base/Exception.h Mon May 7 23:53:20 2007 @@ -195,6 +195,8 @@ /** Helper for \ref ZYPP_THROW. */ template<class _Excpt> + void _ZYPP_THROW( const _Excpt & excpt_r, const exception_detail::CodeLocation & where_r ) __attribute__((noreturn)); + template<class _Excpt> void _ZYPP_THROW( const _Excpt & excpt_r, const exception_detail::CodeLocation & where_r ) { excpt_r.relocate( where_r ); @@ -211,6 +213,8 @@ /** Helper for \ref ZYPP_THROW. */ template<class _Excpt> + void _ZYPP_RETHROW( const _Excpt & excpt_r, const exception_detail::CodeLocation & where_r ) __attribute__((noreturn)); + template<class _Excpt> void _ZYPP_RETHROW( const _Excpt & excpt_r, const exception_detail::CodeLocation & where_r ) { Exception::log( excpt_r, where_r, "RETHROW: " ); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org