K_THREAD_DEFINE() uses const in a wrong way #29300
Labels
area: Kernel
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
Hi, I have the following code:
which compiles and works fine. However, there's still a subtle problem hidden, misuse of
const
.See the warning "
storage_save' declared with a const-qualified typedef; results in the type being 'struct k_thread *const' instead of 'const struct k_thread
" in this output:See also
https://clang.llvm.org/extra/clang-tidy/checks/misc-misplaced-const.html
The text was updated successfully, but these errors were encountered: