From 8a22feb67aa1f6b434f01fdf52b37148f4946306 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 9 Apr 2019 15:19:16 +0200 Subject: [PATCH] re PR translation/90011 (trailing space in diagnostic) PR translation/90011 * typeck2.c (check_narrowing): Remove trailing space from diagnostics. From-SVN: r270229 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/typeck2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9df42489a4e..9fc4490dc2f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2019-04-09 Jakub Jelinek + + PR translation/90011 + * typeck2.c (check_narrowing): Remove trailing space from diagnostics. + 2019-04-08 Marek Polacek * typeck2.c (digest_init_r): Don't condition the object slicing warning diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 55b84f043f4..df002a1664c 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1019,7 +1019,7 @@ check_narrowing (tree type, tree init, tsubst_flags_t complain, bool const_only) int savederrorcount = errorcount; global_dc->pedantic_errors = 1; pedwarn (loc, OPT_Wnarrowing, - "narrowing conversion of %qE from %qH to %qI ", + "narrowing conversion of %qE from %qH to %qI", init, ftype, type); if (errorcount == savederrorcount) ok = true;