Skip to content
Commit 23233198 authored by Bradley Bolen's avatar Bradley Bolen Committed by Kumar Gala
Browse files

tests: ztest: Use #if defined()



This compile test should be checking if a symbol has been defined,
otherwise it is using the kconfig value directly.  This fixes a warning

../src/main.c:115:37: warning: "CONFIG_SOC_QEMU_ARC" is not defined,
evaluates to 0 [-Wundef]

when using the -Wundef flag.

Signed-off-by: default avatarBradley Bolen <bbolen@lexmark.com>
parent 505c22ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment