From 1b01c54dd1ab2681b8c571dfac08753919d8b66e Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Tue, 30 Jun 2015 09:53:01 -0700 Subject: [PATCH] POSIX: fixed build error for unused variable Signed-off-by: Mark Charlebois --- src/platforms/posix/drivers/gyrosim/gyrosim.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp index f2dd548679..0fde8b293a 100644 --- a/src/platforms/posix/drivers/gyrosim/gyrosim.cpp +++ b/src/platforms/posix/drivers/gyrosim/gyrosim.cpp @@ -999,9 +999,10 @@ GYROSIM::measure_trampoline(void *arg) void GYROSIM::measure() { - static int x = 0; #if 0 + static int x = 0; + // Verify the samples are being taken at the expected rate if (x == 99) { x = 0;