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:
Julia Lawall 2018-12-29 07:14:16 +01:00 committed by Masahiro Yamada
parent dc7884f34a
commit c3003315fb
1 changed files with 5 additions and 0 deletions

View File

@ -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;