diff --git a/mscore/playpanel.cpp b/mscore/playpanel.cpp
index ab2b9b87ab..1796f4989c 100644
--- a/mscore/playpanel.cpp
+++ b/mscore/playpanel.cpp
@@ -251,6 +251,7 @@ void PlayPanel::setRelTempo(qreal val)
void PlayPanel::setGain(float gain) // respond to gainChanged() SIGNAL from MasterSynthesizer
{
+ Q_UNUSED(gain);
const QSignalBlocker blockVolumeSpinBoxSignals(volSpinBox);
volumeSlider->setValue(synti->gainAsDecibels());
volLabel();
diff --git a/mscore/synthcontrol.cpp b/mscore/synthcontrol.cpp
index 90b25f9aa6..94291c96ef 100644
--- a/mscore/synthcontrol.cpp
+++ b/mscore/synthcontrol.cpp
@@ -116,6 +116,7 @@ SynthControl::SynthControl(QWidget* parent)
// synthesizer has signalled a gain change - update the slider
void SynthControl::setGain(float val)
{
+ Q_UNUSED(val);
gainSlider->setValue(synti->gainAsDecibels());
}
diff --git a/mscore/synthcontrol.ui b/mscore/synthcontrol.ui
index 819dbb3af4..54e01119b2 100644
--- a/mscore/synthcontrol.ui
+++ b/mscore/synthcontrol.ui
@@ -459,7 +459,7 @@
effectB
masterTuning
changeTuningButton
- gain
+ gainSlider
saveButton
loadButton
storeButton
diff --git a/synthesizer/msynthesizer.h b/synthesizer/msynthesizer.h
index e98a056122..35c212051a 100644
--- a/synthesizer/msynthesizer.h
+++ b/synthesizer/msynthesizer.h
@@ -47,7 +47,7 @@ class MasterSynthesizer : public QObject {
public:
static const int MAX_BUFFERSIZE = 8192;
static const int MAX_EFFECTS = 2;
- static constexpr float defaultGain = 0.1; // -20dB
+ static constexpr float defaultGain = 0.1f; // -20dB
private:
std::atomic lock1 { false };