diff options
| -rw-r--r-- | show-parse.c | 4 | ||||
| -rw-r--r-- | validation/enum-mismatch.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/show-parse.c b/show-parse.c index b892c189..5590dae9 100644 --- a/show-parse.c +++ b/show-parse.c @@ -408,6 +408,10 @@ out: prepend(name, "restricted "); if (fouled) prepend(name, "fouled "); + + // strip trailing space + if (name->end > name->start && name->end[-1] == ' ') + name->end--; } void show_type(struct symbol *sym) diff --git a/validation/enum-mismatch.c b/validation/enum-mismatch.c index f698c016..1bdb1d6c 100644 --- a/validation/enum-mismatch.c +++ b/validation/enum-mismatch.c @@ -13,7 +13,7 @@ static enum eb foo(enum ea a) * * check-error-start enum-mismatch.c:7:16: warning: mixing different enum types -enum-mismatch.c:7:16: unsigned int enum ea versus -enum-mismatch.c:7:16: unsigned int enum eb +enum-mismatch.c:7:16: unsigned int enum ea versus +enum-mismatch.c:7:16: unsigned int enum eb * check-error-end */ |
