[pushed] coroutines: Fix a diagnostic trailing space warning.

Message ID FEEC4580-EE38-463A-87E4-C61D6736DAD5@sandoe.co.uk
State New
Headers show
Series
  • [pushed] coroutines: Fix a diagnostic trailing space warning.
Related show

Commit Message

Iain Sandoe June 30, 2020, 3:35 p.m.
Hi

A recently add diagnostic has a trailing space which triggers a warning.
Fixed thus.

tested on x86_64-darwin, applied to master, will also apply to 10.2
thanks
Iain

gcc/cp/ChangeLog:

	* coroutines.cc (morph_fn_to_coro): Remove trailing
	space in a diagnostic.
---
 gcc/cp/coroutines.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.24.1

Patch

diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index ba4ac682f11..bec7f2f2027 100644
--- a/gcc/cp/coroutines.cc
+++ b/gcc/cp/coroutines.cc
@@ -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.  */
     {