aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--evaluate.c2
-rw-r--r--sparse.12
-rw-r--r--validation/sizeof-bool.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/evaluate.c b/evaluate.c
index 4e1dffe9..9ee47c61 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -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;
}
diff --git a/sparse.1 b/sparse.1
index 88343f31..70f1f55a 100644
--- a/sparse.1
+++ b/sparse.1
@@ -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
*/