fixed compiler warnings detected by jenkins build server

This commit is contained in:
Mathew Sutcliffe
2014-04-07 15:47:12 +01:00
parent 2f8efe5c3b
commit 903ddf7841
3 changed files with 4 additions and 2 deletions

View File

@@ -221,6 +221,7 @@ void MainWindow::init(GuiModes::CoreMode coreMode)
this->connect(this->m_contextSettings, &IContextSettings::changedSettings, this, &MainWindow::changedSettings); this->connect(this->m_contextSettings, &IContextSettings::changedSettings, this, &MainWindow::changedSettings);
connect = this->connect(this->m_contextNetwork, SIGNAL(textMessagesReceived(BlackMisc::Network::CTextMessageList)), this, SLOT(appendTextMessagesToGui(BlackMisc::Network::CTextMessageList))); connect = this->connect(this->m_contextNetwork, SIGNAL(textMessagesReceived(BlackMisc::Network::CTextMessageList)), this, SLOT(appendTextMessagesToGui(BlackMisc::Network::CTextMessageList)));
Q_ASSERT(connect); Q_ASSERT(connect);
Q_UNUSED(connect); // suppress GCC warning in release build
this->connect(this->m_contextSimulator, &IContextSimulator::connectionChanged, this, &MainWindow::simulatorAvailable); this->connect(this->m_contextSimulator, &IContextSimulator::connectionChanged, this, &MainWindow::simulatorAvailable);
this->connect(this->m_timerUpdateAircraftsInRange, &QTimer::timeout, this, &MainWindow::timerBasedUpdates); this->connect(this->m_timerUpdateAircraftsInRange, &QTimer::timeout, this, &MainWindow::timerBasedUpdates);
this->connect(this->m_timerUpdateAtcStationsOnline, &QTimer::timeout, this, &MainWindow::timerBasedUpdates); this->connect(this->m_timerUpdateAtcStationsOnline, &QTimer::timeout, this, &MainWindow::timerBasedUpdates);

View File

@@ -67,6 +67,7 @@ namespace BlackSound
this->m_pushTimer = new QTimer(this); this->m_pushTimer = new QTimer(this);
bool connect = this->connect(this->m_pushTimer, &QTimer::timeout, this, &CSoundGenerator::pushTimerExpired); bool connect = this->connect(this->m_pushTimer, &QTimer::timeout, this, &CSoundGenerator::pushTimerExpired);
Q_ASSERT(connect); Q_ASSERT(connect);
Q_UNUSED(connect); // suppress Clang warning in release build
this->m_pushTimer->start(20); this->m_pushTimer->start(20);
} }
this->m_pushModeIODevice = this->m_audioOutput->start(); // push, IO device not owned this->m_pushModeIODevice = this->m_audioOutput->start(); // push, IO device not owned
@@ -256,7 +257,7 @@ namespace BlackSound
if (!success) return false; if (!success) return false;
CombinedHeader header; CombinedHeader header;
size_t headerLength = sizeof(CombinedHeader); qint64 headerLength = sizeof(CombinedHeader);
memset(&header, 0, headerLength); memset(&header, 0, headerLength);
// RIFF header // RIFF header

View File

@@ -49,7 +49,7 @@ public:
//! Copying is only allowed when there are no connections stored. //! Copying is only allowed when there are no connections stored.
//! @{ //! @{
ConnectGuard(const ConnectGuard& other) { Q_ASSERT(other.m_conns.isEmpty()); Q_UNUSED(other); } ConnectGuard(const ConnectGuard& other) { Q_ASSERT(other.m_conns.isEmpty()); Q_UNUSED(other); }
ConnectGuard& operator= (const ConnectGuard& other) { Q_ASSERT(other.m_conns.isEmpty()); Q_UNUSED(other); } ConnectGuard& operator= (const ConnectGuard& other) { Q_ASSERT(other.m_conns.isEmpty()); Q_UNUSED(other); return *this; }
//! @} //! @}
private: private: