Commit 7e03d25c by Iain Sandoe

coroutines: Fix a diagnostic trailing space warning.

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)
parent b7aedecd
...@@ -4109,7 +4109,7 @@ morph_fn_to_coro (tree orig, tree *resumer, tree *destroyer) ...@@ -4109,7 +4109,7 @@ morph_fn_to_coro (tree orig, tree *resumer, tree *destroyer)
else if (!grooaf && TYPE_NOTHROW_P (TREE_TYPE (func))) else if (!grooaf && TYPE_NOTHROW_P (TREE_TYPE (func)))
warning_at (fn_start, 0, "%qE is marked %<throw()%> or %<noexcept%> but" warning_at (fn_start, 0, "%qE is marked %<throw()%> or %<noexcept%> but"
" no usable %<get_return_object_on_allocation_failure%>" " 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. */ else /* No operator new in the promise. */
{ {
......
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