Remove 'return' from noreturn function
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Oct 2016 11:20:29 +0000 (12:20 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 12 Oct 2016 11:20:29 +0000 (12:20 +0100)
* libsupc++/nested_exception.h (throw_with_nested): Remove return.

From-SVN: r241032

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/nested_exception.h

index 6dfe2637fe25de3f46ad10b452b19ac97626712e..b11d1123a23665852e3be4b5bc7d4d2f965da5d6 100644 (file)
@@ -1,5 +1,7 @@
 2016-10-12  Jonathan Wakely  <jwakely@redhat.com>
 
+       * libsupc++/nested_exception.h (throw_with_nested): Remove return.
+
        * doc/xml/manual/intro.xml: Document LWG 2442 status.
        * include/std/mutex [_GLIBCXX_HAVE_TLS] (__once_call_impl): Remove.
        [_GLIBCXX_HAVE_TLS] (_Once_call): Declare primary template and define
index 0c00d7487acee760b4e0009b9cb2041f60230b3a..078af0ea16fb19fa10724aaca67028dfa28d2425 100644 (file)
@@ -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.