diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-13 23:45:49 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-16 09:21:10 +0100 |
| commit | a6dfe0e3b6329c63416514eccb251d4e35a28353 (patch) | |
| tree | f21537f185122ca313d0e77feabf1d371998c043 | |
| parent | bdf0e7cbb34b4d914366fe00063ce1da85ee2667 (diff) | |
| download | sparse-dev-a6dfe0e3b6329c63416514eccb251d4e35a28353.tar.gz | |
no repetition in unknown attribute warning message
The warning message for unknown attributes is a bit longish and
uses the word 'attribute' twice.
Change the message for something more direct, shorter and without
repetition.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rw-r--r-- | parse.c | 2 | ||||
| -rw-r--r-- | validation/Wunknown-attribute-yes.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1194,7 +1194,7 @@ static struct token *recover_unknown_attribute(struct token *token) struct expression *expr = NULL; if (Wunknown_attribute) - warning(token->pos, "attribute '%s': unknown attribute", show_ident(token->ident)); + warning(token->pos, "unknown attribute '%s'", show_ident(token->ident)); token = token->next; if (match_op(token, '(')) token = parens_expression(token, &expr, "in attribute"); diff --git a/validation/Wunknown-attribute-yes.c b/validation/Wunknown-attribute-yes.c index 72538cf5..4b7fcc32 100644 --- a/validation/Wunknown-attribute-yes.c +++ b/validation/Wunknown-attribute-yes.c @@ -5,6 +5,6 @@ static int foo(void) __attribute__((unknown_attribute)); * check-command: sparse -Wunknown-attribute $file * * check-error-start -Wunknown-attribute-yes.c:1:37: warning: attribute 'unknown_attribute': unknown attribute +Wunknown-attribute-yes.c:1:37: warning: unknown attribute 'unknown_attribute' * check-error-end */ |
