From 70fe2b3a6bc2ee3a9ef7d0344cf28497f70323e3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 10 Jan 2025 15:21:00 -0800 Subject: [PATCH] Remove unused variable tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp:19:32: error: unused variable 'targets' [-Werror,-Wunused-const-variable] constexpr const struct device *targets[FORWARD_COUNT] = { ^ Signed-off-by: Tom Hughes --- tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp b/tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp index 00a49c69024cfe..1daabae11c8181 100644 --- a/tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp +++ b/tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp @@ -16,8 +16,6 @@ namespace /* Get the devicetree constants */ constexpr const struct device *controller = DEVICE_DT_GET(CONTROLLER_LABEL); -constexpr const struct device *targets[FORWARD_COUNT] = { - DT_FOREACH_PROP_ELEM(CONTROLLER_LABEL, forwards, GET_TARGET_DEVICE)}; ZTEST(i2c_emul_forwarding, test_write_is_forwarded) {