From d97ae3c38aba0db03009ad80c58caee07cdf1bbe Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 13 Feb 2013 09:01:20 +0000 Subject: [PATCH] Code Cleanup: Compiler nits .. fix further XCode semantic warning messages (still some left) .. WIN32 gcc builds --- src/ANT.cpp | 6 ++---- src/Bin2RideFile.cpp | 4 ++-- src/Computrainer.cpp | 4 ++-- src/NullController.h | 2 +- src/WorkoutWizard.h | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/ANT.cpp b/src/ANT.cpp index 0ca9ae269..a28597620 100644 --- a/src/ANT.cpp +++ b/src/ANT.cpp @@ -876,8 +876,6 @@ int ANT::rawWrite(uint8_t *bytes, int size) // unix!! int ANT::rawRead(uint8_t bytes[], int size) { - int rc=0; - #ifdef WIN32 switch (usbMode) { case USB1: @@ -887,7 +885,6 @@ int ANT::rawRead(uint8_t bytes[], int size) return usb2->read((char *)bytes, size); break; default: - rc = 0; break; } @@ -904,13 +901,14 @@ int ANT::rawRead(uint8_t bytes[], int size) // read one byte at a time sleeping when no data ready // until we timeout waiting then return error for (i=0; i