From d0cb1b18d5360883fe260f42722c0866bfe0abb1 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 28 Nov 2018 13:30:08 +0300 Subject: [PATCH] missing_break: turn it off by default This check isn't great because we don't parse comments and the kernel hasn't added support for the fall through attribute either yet. New versions of GCC check for this so let's just let them handle it instead. Signed-off-by: Dan Carpenter --- check_missing_break.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_missing_break.c b/check_missing_break.c index 434b7283..5663b4e5 100644 --- a/check_missing_break.c +++ b/check_missing_break.c @@ -174,6 +174,9 @@ void check_missing_break(int id) { my_id = id; + if (!option_spammy) + return; + add_unmatched_state_hook(my_id, &unmatched_state); add_merge_hook(my_id, &merge_hook); -- 2.11.4.GIT