Commit 1d68fae
authored
Add dummy macros for conditionally defined macros (#211)
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 9cf7f12 commit 1d68fae
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
414 | 420 | | |
415 | 421 | | |
416 | 422 | | |
| |||
450 | 456 | | |
451 | 457 | | |
452 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
453 | 463 | | |
454 | 464 | | |
455 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
0 commit comments