mirror of https://github.com/thesofproject/sof.git
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:
parent
98167ceac7
commit
6d9ce240e2
|
@ -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;
|
||||
|
||||
/* iterate over global `tr_ctx` entries located in their own section */
|
||||
/* cppcheck-suppress comparePointers */
|
||||
while (ptr < end) {
|
||||
/*
|
||||
* when looking for specific uuid element,
|
||||
|
|
Loading…
Reference in New Issue