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

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