diff options
| author | John Keeping <john@keeping.me.uk> | 2014-03-02 12:31:59 +0000 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2014-04-01 00:11:01 -0700 |
| commit | cb14f76857ead767d3fa932b5606ed11f0c8482e (patch) | |
| tree | 1d9b5d018cdee8ea7b6b85a949d68ac96a32d6bb /validation | |
| parent | 2667c2d4ab3342b54283d16f1d62e6d715f3b373 (diff) | |
| download | sparse-dev-cb14f76857ead767d3fa932b5606ed11f0c8482e.tar.gz | |
validation/sizeof-bool: fix broken test case
Since commit 2667c2d (sparse: Allow override of sizeof(bool) warning,
2014-02-26) the default has been not to warn on sizeof(bool). This
means that the sizeof-bool test case now needs an explicit command in
order to trigger the warning it is testing.
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/sizeof-bool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/validation/sizeof-bool.c b/validation/sizeof-bool.c index 6c68748a..05e76a44 100644 --- a/validation/sizeof-bool.c +++ b/validation/sizeof-bool.c @@ -6,6 +6,7 @@ static int a(void) * check-name: sizeof(_Bool) is valid * check-description: sizeof(_Bool) was rejected because _Bool is not an even * number of bytes + * check-command: sparse -Wsizeof-bool $file * check-error-start sizeof-bool.c:3:16: warning: expression using sizeof bool * check-error-end |
