Remove some compiler warnings.

pull/1/head
Jonathan Naylor 8 years ago
parent c6d085da28
commit 69f802e68f

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2011-2015 by Jonathan Naylor G4KLX * Copyright (C) 2011-2015,2018 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -828,11 +828,12 @@ m_splitTimeout(DEFAULT_SPLIT_TIMEOUT)
wxTextFile file(m_fileName.GetFullPath()); wxTextFile file(m_fileName.GetFullPath());
if (!file.Exists()) if (!file.Exists()) {
if(mustExist) if (mustExist)
throw std::runtime_error("Configuration file does not exist"); throw std::runtime_error("Configuration file does not exist");
else else
return; return;
}
if (!file.Open()) if (!file.Open())
throw std::runtime_error("Cannot open the configuration file"); throw std::runtime_error("Cannot open the configuration file");

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2010-2014 by Jonathan Naylor G4KLX * Copyright (C) 2010-2014,2018 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -74,11 +74,11 @@ static void libUsbLogError(int ret, const char *message) {
CGMSKModemLibUsb::CGMSKModemLibUsb(unsigned int address) : CGMSKModemLibUsb::CGMSKModemLibUsb(unsigned int address) :
m_address(address), m_address(address),
m_dev(NULL),
m_brokenSpace(false)
#if !defined(WIN32) #if !defined(WIN32)
,m_context(NULL) m_context(NULL),
#endif #endif
m_dev(NULL),
m_brokenSpace(false)
{ {
#if defined(WIN32) #if defined(WIN32)
@ -440,4 +440,4 @@ int CGMSKModemLibUsb::io(uint8_t requestType, uint8_t request, uint16_t value,
} }
return ret; return ret;
} }

@ -60,8 +60,8 @@ m_rxInvert(rxInvert),
m_txInvert(txInvert), m_txInvert(txInvert),
m_pttInvert(pttInvert), m_pttInvert(pttInvert),
m_txDelay(txDelay), m_txDelay(txDelay),
m_txLevel(txLevel),
m_rxLevel(rxLevel), m_rxLevel(rxLevel),
m_txLevel(txLevel),
m_serial(port, SERIAL_115200, true), m_serial(port, SERIAL_115200, true),
m_buffer(NULL), m_buffer(NULL),
m_txData(1000U), m_txData(1000U),

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2011-2015 by Jonathan Naylor G4KLX * Copyright (C) 2011-2015,2018 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

@ -470,7 +470,7 @@ void CDStarRepeaterApp::createThread()
modem = new CDVMegaController(port, wxEmptyString, txDelay, rxFrequency, txFrequency, power); modem = new CDVMegaController(port, wxEmptyString, txDelay, rxFrequency, txFrequency, power);
break; break;
default: default:
wxLogError("Unknown DVMEGA variant - %d"), int(variant); wxLogError("Unknown DVMEGA variant - %d", int(variant));
break; break;
} }
} else if (modemType.IsSameAs("GMSK Modem")) { } else if (modemType.IsSameAs("GMSK Modem")) {

Loading…
Cancel
Save

Powered by TurnKey Linux.