diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-30 20:30:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 20:30:54 +0200 |
commit | 6fed21c7cb85c4dd5842d8cb9fc268957a0429fd (patch) | |
tree | d2a2f6b20cc8d42663f0529aae132069a9b88714 /scene | |
parent | 8f47ca8fe4c16d5190572389ec6041efeae46726 (diff) | |
parent | 72ea74bcc15e4a53f74e217ece0eea6d7aed04ad (diff) |
Merge pull request #37356 from akien-mga/scons-enable-werror
SCons: Treat all warnings as errors
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/audio_stream_player_3d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/3d/audio_stream_player_3d.cpp b/scene/3d/audio_stream_player_3d.cpp index bddf748be7..9f5170fa98 100644 --- a/scene/3d/audio_stream_player_3d.cpp +++ b/scene/3d/audio_stream_player_3d.cpp @@ -29,6 +29,7 @@ /*************************************************************************/ #include "audio_stream_player_3d.h" + #include "core/engine.h" #include "scene/3d/area_3d.h" #include "scene/3d/camera_3d.h" @@ -96,7 +97,7 @@ static const Vector3 speaker_directions[7] = { }; void AudioStreamPlayer3D::_calc_output_vol(const Vector3 &source_dir, real_t tightness, AudioStreamPlayer3D::Output &output) { - unsigned int speaker_count; // only main speakers (no LFE) + unsigned int speaker_count = 0; // only main speakers (no LFE) switch (AudioServer::get_singleton()->get_speaker_mode()) { case AudioServer::SPEAKER_MODE_STEREO: speaker_count = 2; |