dist/coccinelle: adapt rules for ENABLE_DEBUG
This commit is contained in:
parent
a76cb4ea2f
commit
0c8df9bb3c
16
dist/tools/coccinelle/warn/enable_debug.cocci
vendored
Normal file
16
dist/tools/coccinelle/warn/enable_debug.cocci
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// ENABLE_DEBUG must not use parenthesis to be compatible with IS_ACTIVE
|
||||||
|
|
||||||
|
@@
|
||||||
|
constant C;
|
||||||
|
@@
|
||||||
|
|
||||||
|
- #define ENABLE_DEBUG (C)
|
||||||
|
+ #define ENABLE_DEBUG C
|
||||||
|
|
||||||
|
// make sure that ENABLE_DEBUG is zero
|
||||||
|
|
||||||
|
@@
|
||||||
|
@@
|
||||||
|
|
||||||
|
- #define ENABLE_DEBUG 1
|
||||||
|
+ #define ENABLE_DEBUG 0
|
||||||
@ -1,5 +0,0 @@
|
|||||||
@@
|
|
||||||
@@
|
|
||||||
|
|
||||||
- #define ENABLE_DEBUG (1)
|
|
||||||
+ #define ENABLE_DEBUG (0)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user