aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-04-09 15:19:16 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-04-09 15:19:16 +0200
commit8a22feb67aa1f6b434f01fdf52b37148f4946306 (patch)
tree7664f083d9896759d6624375f0b15a8b72d0cb1f /gcc
parente009dfb32037f94447f0547a3930ecccd7fabe37 (diff)
downloadgcc-8a22feb67aa1f6b434f01fdf52b37148f4946306.zip
gcc-8a22feb67aa1f6b434f01fdf52b37148f4946306.tar.gz
gcc-8a22feb67aa1f6b434f01fdf52b37148f4946306.tar.bz2
re PR translation/90011 (trailing space in diagnostic)
PR translation/90011 * typeck2.c (check_narrowing): Remove trailing space from diagnostics. From-SVN: r270229
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/typeck2.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9df4248..9fc4490 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index 55b84f0..df002a1 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;