Skip to content
Commit 9f5492ac authored by Tim Pambor's avatar Tim Pambor Committed by Daniel DeGrasse
Browse files

sys: cbprintf: Fix performance-no-int-to-ptr warning



clang-tidy reports a performance-no-int-to-ptr warning due to the cast
(const char *)(uintptr_t)(v).

Previously, only char * was cast to const char *, but there's no downside
to constifying all pointer types.

This change updates the Z_CONSTIFY macro to apply const consistently,
which even aligns better with its name and resolves the warning.

Signed-off-by: default avatarTim Pambor <tim.pambor@codewrights.de>
parent 6aeb12d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment