From cb14f76857ead767d3fa932b5606ed11f0c8482e Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sun, 2 Mar 2014 12:31:59 +0000 Subject: [PATCH] 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 Signed-off-by: Christopher Li --- validation/sizeof-bool.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.4.GIT