mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
scripts: coccinelle: boolinit: drop warnings on named constants
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 <Julia.Lawall@lip6.fr> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
dc7884f34a
commit
c3003315fb
1 changed files with 5 additions and 0 deletions
|
@ -136,9 +136,14 @@ position p1;
|
||||||
@r4 depends on !patch@
|
@r4 depends on !patch@
|
||||||
bool b;
|
bool b;
|
||||||
position p2;
|
position p2;
|
||||||
|
identifier i;
|
||||||
constant c != {0,1};
|
constant c != {0,1};
|
||||||
@@
|
@@
|
||||||
|
(
|
||||||
|
b = i
|
||||||
|
|
|
||||||
*b@p2 = c
|
*b@p2 = c
|
||||||
|
)
|
||||||
|
|
||||||
@script:python depends on org@
|
@script:python depends on org@
|
||||||
p << r1.p;
|
p << r1.p;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue