mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-24 14:15:50 +00:00
Previously, there were two issues when attempting to use LOG_HEXDUMP_* from C++: First, gcc and clang in C mode both allow implicit pointer conversion by default, but require -fpermissive, which no one should ever use, in C++ mode. Furthermore, -Wpointer-sign, the warning emitted in C for convertion between pointers to types of different signedness (e.g. char* vs u8_t*) is explicitly disabled in Zephyr. Switch the various hexdump functions to void*, which is guaranteed to work in both languages. Second, the soon-to-be-standardized C++20 version of designated initializers requires that the designators appear in the same order as they are declared in the type being initialized. Signed-off-by: Josh Gao <josh@jmgao.dev> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.template.log_config | ||
log_backend_native_posix.c | ||
log_backend_net.c | ||
log_backend_rtt.c | ||
log_backend_std.h | ||
log_backend_swo.c | ||
log_backend_uart.c | ||
log_backend_xtensa_sim.c | ||
log_cmds.c | ||
log_core.c | ||
log_list.c | ||
log_list.h | ||
log_minimal.c | ||
log_msg.c | ||
log_output_syst.c | ||
log_output.c |