Code Cleanup: win32 fixups

.. Bin2RideFile constants might be an issue?
.. otherwise just unused variables
This commit is contained in:
Mark Liversedge
2013-02-13 19:13:16 +00:00
parent 7dd99eeb8b
commit 0ffdf84383
3 changed files with 7 additions and 3 deletions

View File

@@ -504,6 +504,10 @@ ANT::associateControlChannels() {
bool
ANT::discover(QString name)
{
#ifdef WIN32
Q_UNUSED(name);
#endif
#ifdef Q_OS_LINUX
// All we can do for USB1 sticks is see if the cp210x driver module

View File

@@ -168,12 +168,12 @@ struct Bin2FileReaderState
if (alt == 0x8000)
alt = 0;
if ((long)lat == -2147483648L) //2147483648
if ((long)lat == (long)0x80000000) //2147483648
lat = 0;
else
lat = lat/10000000.0;
if ((long)lng == -2147483648L) //0x80000000
if ((long)lng == (long)0x80000000) //0x80000000
lng = 0;
else
lng = lng/10000000.0;

View File

@@ -939,7 +939,7 @@ int Computrainer::rawRead(uint8_t bytes[], int size)
int rc=0;
#ifdef WIN32
Q_UNUSED(size);
// Readfile deals with timeouts and readyread issues
DWORD cBytes;
rc = ReadFile(devicePort, bytes, 7, &cBytes, NULL);