Skip to content

Commit 98cb03e

Browse files
committed
remove faulty deviation
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent f998a69 commit 98cb03e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

cmake/sca/eclair/ECL/deviations.ecl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,6 @@ safe."
328328
-config=MC3A2.R16.3,reports+={safe, "any_area(end_loc(any_exp(text(^(?s).*/\\* [fF]all ?through\\.? \\*/.*$,0..2))))"}
329329
-doc_end
330330

331-
-doc_begin="Switch statements having a controlling expression of enum type deliberately do not have a default case: gcc -Wall enables -Wswitch which warns (and breaks the build as we use -Werror) if one of the enum labels is missing from the switch."
332-
-config=MC3A2.R16.4,reports+={deliberate,"any_area(kind(context)&&^.* has no `default.*$&&stmt(node(switch_stmt)&&child(cond,skip(__non_syntactic_paren_stmts,ref(enum_underlying_type(any()))))))"}
333-
-doc_end
334-
335-
-doc_begin="A switch statement with a single switch clause and no default label may be used in place of an equivalent if statement if it is considered to improve readability."
336-
-config=MC3A2.R16.4,switch_clauses+={deliberate,"switch(1)&&default(0)"}
337-
-doc_end
338-
339331
-doc_begin="A switch statement with a single switch clause and no default label may be used in place of an equivalent if statement if it is considered to improve readability."
340332
-config=MC3A2.R16.6,switch_clauses+={deliberate, "default(0)"}
341333
-doc_end

0 commit comments

Comments
 (0)