summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-05-12 11:50:50 +0200
committerGitHub <noreply@github.com>2020-05-12 11:50:50 +0200
commit092b2bd36f9907c3d3d7687a66e5624f669c661a (patch)
tree1b8d80ab2cf4b6f833252fad2b6c22367acf1691 /servers
parent02bcaa7a460b3ac607c9838b341f8a473d17656d (diff)
parentd02143905ff064c78cec5cac96821bfc814143eb (diff)
Merge pull request #38691 from madmiraal/fix-eq-uninitialised-warning
Silence EQ::Band::c1, c2 and c3 may be used uninitialized warnings.
Diffstat (limited to 'servers')
-rw-r--r--servers/audio/effects/eq.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/audio/effects/eq.cpp b/servers/audio/effects/eq.cpp
index 426f178dcb..b90e8a2726 100644
--- a/servers/audio/effects/eq.cpp
+++ b/servers/audio/effects/eq.cpp
@@ -125,6 +125,7 @@ void EQ::set_preset_band_mode(Preset p_preset) {
for (int i = 0; i < m_bands; i++) { \
Band b; \
b.freq = bands[i]; \
+ b.c1 = b.c2 = b.c3 = 0; \
band.push_back(b); \
}