diff --git a/src/controllers/midi/hss1394controller.cpp b/src/controllers/midi/hss1394controller.cpp index fb6efda3e4f..95fd45ab676 100644 --- a/src/controllers/midi/hss1394controller.cpp +++ b/src/controllers/midi/hss1394controller.cpp @@ -59,8 +59,7 @@ void DeviceChannelListener::Reconnected() { Hss1394Controller::Hss1394Controller( const hss1394::TNodeInfo& deviceInfo, - int deviceIndex, - UserSettingsPointer pConfig) + int deviceIndex) : MidiController(), m_deviceInfo(deviceInfo), m_iDeviceIndex(deviceIndex) { diff --git a/src/controllers/midi/hss1394controller.h b/src/controllers/midi/hss1394controller.h index 1f1cbf57e55..cbf6929eb52 100644 --- a/src/controllers/midi/hss1394controller.h +++ b/src/controllers/midi/hss1394controller.h @@ -39,8 +39,7 @@ class Hss1394Controller : public MidiController { public: Hss1394Controller( const hss1394::TNodeInfo& deviceInfo, - int deviceIndex, - UserSettingsPointer pConfig); + int deviceIndex); ~Hss1394Controller() override; private slots: diff --git a/src/controllers/midi/hss1394enumerator.cpp b/src/controllers/midi/hss1394enumerator.cpp index 76a120c9701..d8a4d539972 100644 --- a/src/controllers/midi/hss1394enumerator.cpp +++ b/src/controllers/midi/hss1394enumerator.cpp @@ -41,7 +41,7 @@ QList Hss1394Enumerator::queryDevices() { QString("%1").arg(tNodeInfo.uProtocolVersion, 0, 16)); qDebug() << " " << message; Hss1394Controller* currentDevice = new Hss1394Controller( - tNodeInfo, i, m_pConfig); + tNodeInfo, i); m_devices.push_back(currentDevice); } } diff --git a/src/encoder/encoderopus.cpp b/src/encoder/encoderopus.cpp index d8e2632d9d0..46fa95d8934 100644 --- a/src/encoder/encoderopus.cpp +++ b/src/encoder/encoderopus.cpp @@ -287,7 +287,7 @@ void EncoderOpus::pushTagsPacket() { int commentCount = 0; const char* vendorString = opus_get_version_string(); - int vendorStringLength = strlen(vendorString); + int vendorStringLength = static_cast(strlen(vendorString)); // == Compute tags frame size == // - Magic signature: 8 bytes diff --git a/src/engine/sync/synccontrol.cpp b/src/engine/sync/synccontrol.cpp index e01f75640f5..5762a03dd79 100644 --- a/src/engine/sync/synccontrol.cpp +++ b/src/engine/sync/synccontrol.cpp @@ -474,7 +474,7 @@ void SyncControl::updateAudible() { if (channelIndex >= 0) { CSAMPLE_GAIN gain = getEngineMaster()->getMasterGain(channelIndex); bool newAudible = gain > CSAMPLE_GAIN_ZERO; - if (m_audible != newAudible) { + if (static_cast(m_audible) != newAudible) { m_audible = newAudible; m_pEngineSync->notifyPlayingAudible(this, m_pPlayButton->toBool() && m_audible); } diff --git a/src/library/export/dlglibraryexport.cpp b/src/library/export/dlglibraryexport.cpp index ded3eac4f6b..9b0e6eff5f6 100644 --- a/src/library/export/dlglibraryexport.cpp +++ b/src/library/export/dlglibraryexport.cpp @@ -273,6 +273,7 @@ void DlgLibraryExport::checkExistingDatabase() { } } catch (std::exception& e) { + Q_UNUSED(e); m_pExistingDatabaseLabel->setText( tr("A database already exists in the chosen directory, " "but there was a problem loading it. Export is not " diff --git a/src/widget/wtracktableviewheader.cpp b/src/widget/wtracktableviewheader.cpp index a79ecc30530..fae519c629e 100644 --- a/src/widget/wtracktableviewheader.cpp +++ b/src/widget/wtracktableviewheader.cpp @@ -49,7 +49,7 @@ HeaderViewState::HeaderViewState(const QString& base64serialized) { QString HeaderViewState::saveState() const { // Serialize the proto to a byte array, then encode the array as Base64. #if GOOGLE_PROTOBUF_VERSION >= 3001000 - size_t size = m_view_state.ByteSizeLong(); + int size = static_cast(m_view_state.ByteSizeLong()); #else int size = m_view_state.ByteSize(); #endif