Remove compilation warnings.

This commit is contained in:
Jonathan Naylor 2017-11-28 21:35:25 +00:00
parent ac53939204
commit 35629f8708
2 changed files with 5 additions and 4 deletions

View file

@ -1640,7 +1640,7 @@ void CDMRSlot::logGPSPosition(const unsigned char* data)
{
unsigned int errorI = (data[2U] & 0x0E) >> 1U;
char* error;
const char* error;
switch (errorI) {
case 0U:
error = "< 2m";
@ -1664,7 +1664,8 @@ void CDMRSlot::logGPSPosition(const unsigned char* data)
error = "> 200km";
break;
default:
return;
error = "not known";
break;
}
int32_t longitudeI = ((data[2U] & 0x01U) << 31) | (data[3U] << 23) | (data[4U] << 15) | (data[5U] << 7);

View file

@ -32,11 +32,11 @@ m_debug(debug),
m_blockCount(0U),
m_timer(1000U, 0U, jitterTime),
m_stopWatch(),
m_running(false),
m_buffer(NULL),
m_headSequenceNumber(0U),
m_lastData(NULL),
m_lastDataLength(0U),
m_running(false)
m_lastDataLength(0U)
{
assert(blockSize > 0U);
assert(blockTime > 0U);