]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
coroutines: Fix a diagnostic trailing space warning.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 1 Jul 2020 06:59:43 +0000 (07:59 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 1 Jul 2020 17:05:13 +0000 (18:05 +0100)
A recently add diagnostic has a trailing space.
Fixed thus.

gcc/cp/ChangeLog:

* coroutines.cc (morph_fn_to_coro): Remove trailing
space in a diagnostic.

(cherry picked from commit eef63aacb255befb4e483cf680a3d0dcb2d8794e)

gcc/cp/coroutines.cc

index 9ab0a7ea10f12a1e5556f69ab1121739ff1b2e40..95e44e264f41b7ca600424c8375bbad9a4cab76b 100644 (file)
@@ -4109,7 +4109,7 @@ morph_fn_to_coro (tree orig, tree *resumer, tree *destroyer)
     else if (!grooaf && TYPE_NOTHROW_P (TREE_TYPE (func)))
       warning_at (fn_start, 0, "%qE is marked %<throw()%> or %<noexcept%> but"
                  " no usable %<get_return_object_on_allocation_failure%>"
-                 " is provided by %qT ", nwname, promise_type);
+                 " is provided by %qT", nwname, promise_type);
     }
   else /* No operator new in the promise.  */
     {