mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 22:45:08 +00:00
When CONFIG_LIBC_BACKTRACE_DEPTH is not set or <= 0, backtrace_get() is a macro that always sets depth to 0, making the for-loop body unreachable (Coverity CID 8405332 DEADCODE). Wrap backtrace_get() call, the loop, and related variable declarations with #if CONFIG_LIBC_BACKTRACE_DEPTH > 0 to eliminate the dead code and avoid unused variable warnings. Signed-off-by: guanyi3 <guanyi3@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| devfreq.c | ||
| devfreq_ondemand.c | ||
| devfreq_performance.c | ||
| devfreq_powersave.c | ||
| devfreq_procfs.c | ||
| devfreq_qos.c | ||
| Kconfig | ||
| Make.defs | ||