Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3003315 authored by Julia Lawall's avatar Julia Lawall Committed by Masahiro Yamada
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent dc7884f3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;