Skip to content

Commit 782152f

Browse files
thugheskartben
authored andcommitted
tests: i2c_emul: Remove unused variable
Building with clang warns: tests/drivers/i2c/i2c_emul/src/test_forwarding_buf.cpp:20:32: error: unused variable 'targets' [-Werror,-Wunused-const-variable] constexpr const struct device *targets[FORWARD_COUNT] = { ^ Signed-off-by: Tom Hughes <tomhughes@chromium.org>
1 parent bae8e34 commit 782152f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/drivers/i2c/i2c_emul/src/test_forwarding_buf.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ namespace
1515

1616
/* Get the devicetree constants */
1717
constexpr const struct device *controller = DEVICE_DT_GET(CONTROLLER_LABEL);
18-
constexpr const struct device *targets[FORWARD_COUNT] = {
19-
DT_FOREACH_PROP_ELEM_SEP(CONTROLLER_LABEL, forwards, DEVICE_DT_GET_BY_IDX, (,))};
2018

2119
ZTEST(i2c_emul_forwarding, test_write_is_forwarded)
2220
{

0 commit comments

Comments
 (0)