Commit c85d1992 by Jonathan Wakely Committed by Jonathan Wakely

Add [[noreturn]] attributes to fix warning

	* libsupc++/nested_exception.h (__throw_with_nested_impl): Add
	noreturn attribute.

From-SVN: r255315
parent 071f228f
2017-12-01 Jonathan Wakely <jwakely@redhat.com> 2017-12-01 Jonathan Wakely <jwakely@redhat.com>
* libsupc++/nested_exception.h (__throw_with_nested_impl): Add
noreturn attribute.
* include/bits/regex_executor.tcc (_Executor::_M_rep_once_more): * include/bits/regex_executor.tcc (_Executor::_M_rep_once_more):
Remove semi-colon after function body. Remove semi-colon after function body.
* include/bits/uniform_int_dist.h (_Power_of_2): Likewise. * include/bits/uniform_int_dist.h (_Power_of_2): Likewise.
......
...@@ -92,6 +92,7 @@ namespace std ...@@ -92,6 +92,7 @@ namespace std
// Throw an exception of unspecified type that is publicly derived from // Throw an exception of unspecified type that is publicly derived from
// both remove_reference_t<_Tp> and nested_exception. // both remove_reference_t<_Tp> and nested_exception.
template<typename _Tp> template<typename _Tp>
[[noreturn]]
inline void inline void
__throw_with_nested_impl(_Tp&& __t, true_type) __throw_with_nested_impl(_Tp&& __t, true_type)
{ {
...@@ -100,6 +101,7 @@ namespace std ...@@ -100,6 +101,7 @@ namespace std
} }
template<typename _Tp> template<typename _Tp>
[[noreturn]]
inline void inline void
__throw_with_nested_impl(_Tp&& __t, false_type) __throw_with_nested_impl(_Tp&& __t, false_type)
{ throw std::forward<_Tp>(__t); } { throw std::forward<_Tp>(__t); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment