fix(heap): Fixed const qualifier warning in heap_task_info.c

Fixed compilation error when building with -Wwrite-strings or
-Wdiscarded-qualifiers by adding const qualifier to char pointers with
string literals.

Closes https://github.com/espressif/esp-idf/issues/18120
This commit is contained in:
Sudeep Mohanty
2026-03-18 19:42:14 +08:00
committed by BOT
parent d13bbd4b2b
commit 6dafda0e0d
2 changed files with 3 additions and 2 deletions
@@ -4,3 +4,4 @@ CONFIG_HEAP_POISONING_COMPREHENSIVE=n
CONFIG_HEAP_TASK_TRACKING=y # to make sure the config doesn't induce unexpected behavior
CONFIG_HEAP_TRACK_DELETED_TASKS=y # to make sure the config doesn't induce unexpected behavior
CONFIG_COMPILER_WARN_WRITE_STRINGS=y