From 1cc84fa1856e7fc71bc2e5a6fae17e81bee736c1 Mon Sep 17 00:00:00 2001 From: C Freeman Date: Thu, 15 Jul 2021 00:50:35 -0400 Subject: [PATCH] Fix warning on heap tracing. (#8385) --- examples/platform/esp32/shell_extension/heap_trace.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/platform/esp32/shell_extension/heap_trace.cpp b/examples/platform/esp32/shell_extension/heap_trace.cpp index adec9cfff4b1ad..4ed70473ac278c 100644 --- a/examples/platform/esp32/shell_extension/heap_trace.cpp +++ b/examples/platform/esp32/shell_extension/heap_trace.cpp @@ -42,7 +42,9 @@ constexpr size_t kNumHeapTraceRecords = 100; constexpr size_t kNumHeapTasks = 20; constexpr size_t kNumHeapBlocks = 20; +#if CONFIG_HEAP_TRACING_STANDALONE heap_trace_record_t sTraceRecords[kNumHeapTraceRecords]; +#endif Engine sShellHeapSubCommands;