re PR translation/90011 (trailing space in diagnostic)

PR translation/90011
	* typeck2.c (check_narrowing): Remove trailing space from diagnostics.

From-SVN: r270229
This commit is contained in:
Jakub Jelinek 2019-04-09 15:19:16 +02:00 committed by Jakub Jelinek
parent e009dfb320
commit 8a22feb67a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-04-09 Jakub Jelinek <jakub@redhat.com>
PR translation/90011
* typeck2.c (check_narrowing): Remove trailing space from diagnostics.
2019-04-08 Marek Polacek <polacek@redhat.com>
* typeck2.c (digest_init_r): Don't condition the object slicing warning

View File

@ -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;