Browse Source

tests: i2c_emul: Remove unused variable

Building with clang warns:

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 <tomhughes@chromium.org>
pull/85699/head
Tom Hughes 6 months ago committed by Benjamin Cabé
parent
commit
bae8e34a38
  1. 2
      tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp

2
tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp

@ -14,8 +14,6 @@ namespace @@ -14,8 +14,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_SEP(CONTROLLER_LABEL, forwards, DEVICE_DT_GET_BY_IDX, (,))};
ZTEST(i2c_emul_forwarding, test_write_is_forwarded)
{

Loading…
Cancel
Save