Commit 00b37f4
committed
Add dummy macros for conditionally defined macros
cppcheck reports "unknownMacro" when a conditionally defined macro is
used.
This patch adds dummy macros to make code pass the static analytics
without other effects. The assignments and increments make cppcheck
consider the variables are used to suppress potential reports about
uninitialized variables, unused variables, and can-be-constant
variables. The pointers with value 1 instead of NULL suppress reports
about indirectly getting value of null pointers.
Closes #210.
Change-Id: Ia8db49c0c71ab82d5da10ce389f57ebb69c990511 parent 53aa839 commit 00b37f4
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
414 | 417 | | |
415 | 418 | | |
416 | 419 | | |
| |||
450 | 453 | | |
451 | 454 | | |
452 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
453 | 460 | | |
454 | 461 | | |
455 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
0 commit comments