diff --git a/src/platforms/posix/drivers/barosim/baro.cpp b/src/platforms/posix/drivers/barosim/baro.cpp index 960e14c1a3..b538f399b1 100644 --- a/src/platforms/posix/drivers/barosim/baro.cpp +++ b/src/platforms/posix/drivers/barosim/baro.cpp @@ -534,10 +534,9 @@ BAROSIM::cycle() if (ret != OK) { uint8_t cmd = ADDR_RESET_CMD; - int result; /* bump the retry count */ - result = transfer(&cmd, 1, nullptr, 0); + (void)transfer(&cmd, 1, nullptr, 0); /* reset the collection state machine and try again */ //start_cycle();