coroutines: Fix a diagnostic trailing space warning.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 30 Jun 2020 13:59:43 +0000 (14:59 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 30 Jun 2020 15:32:39 +0000 (16:32 +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.

gcc/cp/coroutines.cc

index ba4ac68..bec7f2f 100644 (file)
@@ -4119,7 +4119,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.  */
     {