summaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-03-16 21:11:40 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-03-16 21:11:40 +0100
commit63ecb626d69524c70858af5f17f4c03b5c4707c7 (patch)
tree8409e3c764dd5587e5a851b5e9c22e18e155e851 /gcc/c-family
parent299ab1b2a13bc34d8dd205a4762e81e627b8ba1f (diff)
downloadgcc-63ecb626d69524c70858af5f17f4c03b5c4707c7.tar.gz
re PR c/84910 (typo: "%qs follows inline declaration ")
PR c/84910 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from diagnostics. * parser.c (cp_parser_lambda_introducer): Remove trailing space from diagnostics. * method.c (synthesize_method): Likewise. * pt.c (convert_nontype_argument): Likewise. From-SVN: r258608
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog6
-rw-r--r--gcc/c-family/c-warn.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index a54d44eb6f3..38dbbe37716 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,9 @@
+2018-03-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/84910
+ * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
+ diagnostics.
+
2018-03-16 Richard Biener <rguenther@suse.de>
PR c/84873
diff --git a/gcc/c-family/c-warn.c b/gcc/c-family/c-warn.c
index 51c376b7c37..7672d534ffc 100644
--- a/gcc/c-family/c-warn.c
+++ b/gcc/c-family/c-warn.c
@@ -2258,7 +2258,7 @@ diagnose_mismatched_attributes (tree olddecl, tree newdecl)
&& DECL_UNINLINABLE (newdecl)
&& lookup_attribute ("noinline", DECL_ATTRIBUTES (newdecl)))
warned |= warning (OPT_Wattributes, "declaration of %q+D with attribute "
- "%qs follows inline declaration ", newdecl, noinline);
+ "%qs follows inline declaration", newdecl, noinline);
return warned;
}