From bc1639386bf274789a187fe39e889ee5630e5bd9 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Dec 2015 13:54:37 +0100 Subject: [PATCH] Fix compilation of baro sim on Linux --- src/platforms/posix/drivers/barosim/baro.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();