trace: suppress cppcheck comparison error

Cppcheck check doesn't understand the relationship between trace section
start and end so it is giving a false positive because it thinks they
are two separate objects, not two pointers to the same region.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-02-19 14:39:56 -08:00 committed by Liam Girdwood
parent 98167ceac7
commit 6d9ce240e2
1 changed files with 1 additions and 0 deletions

View File

@ -379,6 +379,7 @@ static int trace_filter_update_global(int32_t log_level, uint32_t uuid_id)
struct tr_ctx *end = (struct tr_ctx *)&_trace_ctx_end; struct tr_ctx *end = (struct tr_ctx *)&_trace_ctx_end;
/* iterate over global `tr_ctx` entries located in their own section */ /* iterate over global `tr_ctx` entries located in their own section */
/* cppcheck-suppress comparePointers */
while (ptr < end) { while (ptr < end) {
/* /*
* when looking for specific uuid element, * when looking for specific uuid element,