From 18335d938c25e3c53b7d2b87520f9ad6025edeb2 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 18 Jun 2024 13:44:32 +0200 Subject: [PATCH] Revert "Ignore a maybe-uninitialized warning in AudioStreamPlayer3D." This reverts commit 05f19a003baff7516274226096a835b4ce5e299b. --- scene/3d/audio_stream_player_3d.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scene/3d/audio_stream_player_3d.cpp b/scene/3d/audio_stream_player_3d.cpp index f6d74e7d4..8e590fa3a 100644 --- a/scene/3d/audio_stream_player_3d.cpp +++ b/scene/3d/audio_stream_player_3d.cpp @@ -124,9 +124,6 @@ void AudioStreamPlayer3D::_calc_output_vol(const Vector3 &source_dir, real_t tig real_t volumes[7]; spcap.calculate(source_dir, tightness, speaker_count, volumes); - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" - switch (AudioServer::get_singleton()->get_speaker_mode()) { case AudioServer::SPEAKER_SURROUND_71: output.vol[3].l = volumes[5]; // side-left @@ -144,8 +141,6 @@ void AudioStreamPlayer3D::_calc_output_vol(const Vector3 &source_dir, real_t tig output.vol[0].r = volumes[1]; // front-right output.vol[0].l = volumes[0]; // front-left } - - #pragma GCC diagnostic pop } void AudioStreamPlayer3D::_mix_audio() {