diff options
| -rw-r--r-- | evaluate.c | 2 | ||||
| -rw-r--r-- | sparse.1 | 2 | ||||
| -rw-r--r-- | validation/sizeof-bool.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -2199,7 +2199,7 @@ static struct symbol *evaluate_sizeof(struct expression *expr) if (size == 1 && is_bool_type(type)) { if (Wsizeof_bool) - warning(expr->pos, "expression using sizeof bool"); + warning(expr->pos, "expression using sizeof _Bool"); size = bits_in_char; } @@ -329,7 +329,7 @@ Sparse does not issue these warnings by default. .B \-Wsizeof-bool Warn when checking the sizeof a _Bool. -C99 does not specify the sizeof a _Bool. gcc uses 1. +C99 does not specify the size of a _Bool. GCC, by default, uses \fI1\fR. Sparse does not issue these warnings by default. . diff --git a/validation/sizeof-bool.c b/validation/sizeof-bool.c index 05e76a44..9f21d1c6 100644 --- a/validation/sizeof-bool.c +++ b/validation/sizeof-bool.c @@ -8,6 +8,6 @@ static int a(void) * number of bytes * check-command: sparse -Wsizeof-bool $file * check-error-start -sizeof-bool.c:3:16: warning: expression using sizeof bool +sizeof-bool.c:3:16: warning: expression using sizeof _Bool * check-error-end */ |
