ref: 411143094ecd69bc178ca4c22885db49db32f3bb
parent: 6e924e69701ffca777aa88bb9648af9541f53c56
author: Simon Naarmann <[email protected]>
date: Wed Sep 20 01:03:04 EDT 2017
fix #56: initialize volr in all branches This fixes 3 compiler warnings from gcc 7.2.0 of the form: In file included from src/helpers/resample.c:162:0: src/helpers/resamp3.inc: In function ‘dumb_resample_1_1’: src/helpers/resample.inc:134:72: warning: ‘volr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
--- a/src/helpers/resample.inc
+++ b/src/helpers/resample.inc
@@ -126,6 +126,7 @@
if ( volr == volt ) volume = NULL; \
} else { \
vol = 0; \
+ volr = 0; \
vold = 0; \
volt = 0; \
volm = 0; \
@@ -187,6 +188,7 @@
if ( lvolr == lvolt ) volume_left = NULL; \
} else { \
lvol = 0; \
+ lvolr = 0; \
lvold = 0; \
lvolt = 0; \
lvolm = 0; \
@@ -200,6 +202,7 @@
if ( rvolr == rvolt ) volume_right = NULL; \
} else { \
rvol = 0; \
+ rvolr = 0; \
rvold = 0; \
rvolt = 0; \
rvolm = 0; \