repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
deref_check: silence some false positives
[smatch.git]
/
validation
/
sizeof-bool.c
blob
05e76a44e88e8da71a761e4f830ae0a58d18a0bf
1
static int
a
(
void
)
2
{
3
return sizeof
(
_Bool
);
4
}
5
/*
6
* check-name: sizeof(_Bool) is valid
7
* check-description: sizeof(_Bool) was rejected because _Bool is not an even
8
* number of bytes
9
* check-command: sparse -Wsizeof-bool $file
10
* check-error-start
11
sizeof-bool.c:3:16: warning: expression using sizeof bool
12
* check-error-end
13
*/