diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-10-04 14:19:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-04 14:19:05 +0200 |
| commit | 181af9b48431a5697056c561c9e2edafc7d738f0 (patch) | |
| tree | d184ffe31ecab4cbcb194fa67f294b80b505cc51 /editor/audio_stream_preview.cpp | |
| parent | 674b2567ae9fc367c01de1a70f83a62d8a6de071 (diff) | |
| parent | f48ee838e7b88a630f9dea76b697eb4626d69abc (diff) | |
Merge pull request #22713 from akien-mga/fix-warnings
Fix GCC 8 warnings about potentially unitialized variables
Diffstat (limited to 'editor/audio_stream_preview.cpp')
| -rw-r--r-- | editor/audio_stream_preview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/audio_stream_preview.cpp b/editor/audio_stream_preview.cpp index c5759ac076..5a94d41aba 100644 --- a/editor/audio_stream_preview.cpp +++ b/editor/audio_stream_preview.cpp @@ -50,7 +50,7 @@ float AudioStreamPreview::get_max(float p_time, float p_time_next) const { time_to = time_from + 1; } - uint8_t vmax; + uint8_t vmax = 0; for (int i = time_from; i < time_to; i++) { @@ -77,7 +77,7 @@ float AudioStreamPreview::get_min(float p_time, float p_time_next) const { time_to = time_from + 1; } - uint8_t vmin; + uint8_t vmin = 0; for (int i = time_from; i < time_to; i++) { |