Skip to content

Commit

Permalink
scripts: coccinelle: boolinit: drop warnings on named constants
Browse files Browse the repository at this point in the history
Coccinelle doesn't always have access to the values of named
(#define) constants, and they may likely often be bound to true
and false values anyway, resulting in false positives.  So stop
warning about them.

Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
JuliaLawall authored and masahir0y committed Jan 6, 2019
1 parent dc7884f commit c300331
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/coccinelle/misc/boolinit.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,14 @@ position p1;
@r4 depends on !patch@
bool b;
position p2;
identifier i;
constant c != {0,1};
@@
(
b = i
|
*b@p2 = c
)

@script:python depends on org@
p << r1.p;
Expand Down

0 comments on commit c300331

Please sign in to comment.