Files
esp-idf/components/log
Guillaume Souchere 5e824e6eb7 fix(log): increase s_lvl_color array size to avoid GCC 15 truncation warning
The ANSI color strings initializing s_lvl_color (e.g. "\033[0;31m\0")
are 9 bytes, but the array second dimension was declared as [8], causing
the implicit NUL terminator to be truncated. GCC 15 introduced
-Wunterminated-string-initialization to flag this, resulting in a build
error (-Werror) on the linux target which uses the host system GCC.

Increase the dimension from [8] to [9] to accommodate the full string.

Fixes https://github.com/espressif/esp-idf/issues/18500
2026-04-22 14:45:16 +02:00
..
2025-03-05 12:08:48 +08:00
2025-04-23 15:46:34 +08:00

Please see :doc:`docs/en/api-reference/system/log.rst` for more details.