From: Jakub Jelinek Date: Tue, 9 Apr 2019 13:19:16 +0000 (+0200) Subject: re PR translation/90011 (trailing space in diagnostic) X-Git-Tag: basepoints/gcc-10~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a22feb67aa1f6b434f01fdf52b37148f4946306;p=thirdparty%2Fgcc.git re PR translation/90011 (trailing space in diagnostic) PR translation/90011 * typeck2.c (check_narrowing): Remove trailing space from diagnostics. From-SVN: r270229 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9df42489a4e8..9fc4490dc2f9 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 55b84f043f46..df002a1664c7 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;