Skip to content
Commit cb3fe3cc authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

logging: Workaround build warning with clang



when building with clang we get the following warning:

log_core.c:358:40: error: use of logical '&&' with constant operand
[-Werror,-Wconstant-logical-operand]

This is because we are mix a constant IS_ENABLED(CONFIG_LOG_IMMEDIATE)
with non-constants.

Split out the check into its own statement to workaround the warning.

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 4da0f8b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment