Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thughes committed Jan 10, 2025
1 parent 103e419 commit 70fe2b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 70fe2b3

Please sign in to comment.