According to the C standard it is undefined behavior to use preprocessor directives inside macro invocations. Cppcheck stops when it see this UB with an error message, and so this change will improve Cppcheck analysis This is a refactoring to fix UB, no logical change is intended. Signed-off-by: Daniel Marjamäki <daniel.marjamaki@cppchecksolutions.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| efi_console.c | ||
| ipm_console_receiver.c | ||
| ipm_console_sender.c | ||
| ipm_console.c | ||
| jailhouse_debug_console.c | ||
| Kconfig | ||
| posix_arch_console.c | ||
| ram_console.c | ||
| rtt_console.c | ||
| semihost_console.c | ||
| uart_console.c | ||
| uart_mcumgr.c | ||
| winstream_console.c | ||
| xtensa_sim_console.c | ||