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:

committed by
Masahiro Yamada

parent
dc7884f34a
commit
c3003315fb
@@ -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;
|
||||||
|
Reference in New Issue
Block a user