@@ -2200,7 +2200,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;
}
@@ -346,9 +346,10 @@ Sparse does not issue these warnings by default.
.
.TP
.B \-Wsizeof-bool
-Warn when checking the sizeof a _Bool.
+Warn when applying \fBsizeof\fR to a _Bool type.
-C99 does not specify the sizeof a _Bool. gcc uses 1.
+C99 does not specify the \fBsizeof(_Bool)\fR. By default, GCC assigns _Bool a
+size of \fI1\fR.
Sparse does not issue these warnings by default.
.