mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
fixed compiler warnings detected by jenkins build server
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user