diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-19 19:56:20 +0100 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-19 19:56:20 +0100 |
commit | 18a33fdf8a3a321b737c985b153377ed481680d1 (patch) | |
tree | 933faf28cffa504dadc2f107908ba7a57e22ce8b | |
parent | e10aba703d009f8d24c250f2fa765cf2b3ff8a8a (diff) |
fix warnings about unused variables
-rw-r--r-- | src/AntMessage.cpp | 1 | ||||
-rw-r--r-- | src/SerialUsb.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/AntMessage.cpp b/src/AntMessage.cpp index 1d25a9f..863948f 100644 --- a/src/AntMessage.cpp +++ b/src/AntMessage.cpp @@ -294,6 +294,7 @@ AntMessage::str2() const vector<uchar> payl=getPayload(); const uchar* p=getPayloadRef(); assert(payl[i]==p[i]); + UNUSED(p); } const M_ANT_Burst* burst(reinterpret_cast<const M_ANT_Burst*>(getPayloadRef())); //sstr << " chan=0x" << toString<int>(burst->chan,2,'0') << ", seq=" << toStringDec<int>(burst->seq,1,' ') << ", last=" << (burst->last?"yes":"no "); diff --git a/src/SerialUsb.cpp b/src/SerialUsb.cpp index 023280b..eedb4ad 100644 --- a/src/SerialUsb.cpp +++ b/src/SerialUsb.cpp @@ -312,6 +312,8 @@ struct SerialUsbPrivate //LOG_VAR2(dBuses, dDevices); //lprintf(LOG_INF, "bus: %s, dev: %s, vid: 0x%04hx, pid: 0x%04hx\n", "", "", vid, pid); + UNUSED(dBuses); + UNUSED(dDevices); for (UsbBus = usb_get_busses(); UsbBus; UsbBus = UsbBus->next) { |