This just fixes a -Wsystem-headers warning, because this function is
[[noreturn]].
* libsupc++/nested_exception.h (throw_with_nested): Remove return.
Tested powerpc64le-linux, committed to trunk.
commit 9720fce68641461a1d17bc42bc04d77f5cf18e0e
Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Oct 12 11:20:29 2016 +0000
Remove 'return' from noreturn function
* libsupc++/nested_exception.h (throw_with_nested): Remove return.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241032
138bc75d-0d04-0410-961f-82ee72b054a4
diff --git a/libstdc++-v3/libsupc++/nested_exception.h
b/libstdc++-v3/libsupc++/nested_exception.h
index 0c00d74..078af0e 100644
--- a/libstdc++-v3/libsupc++/nested_exception.h
+++ b/libstdc++-v3/libsupc++/nested_exception.h
@@ -122,7 +122,7 @@ namespace std
"throw_with_nested argument must be CopyConstructible");
using __nest = __and_<is_class<_Up>, __bool_constant<!__is_final(_Up)>,
__not_<is_base_of<nested_exception, _Up>>>;
- return std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{});
+ std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{});
}
// Determine if dynamic_cast<const nested_exception&> would be well-formed.