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]
Unified · Split
| @@ -126,6 +126,7 @@ DUMB_RESAMPLER *dumb_start_resampler(SRCTYPE *src, int src_channels, long pos, l · 125 unmodified lines | ||
| 126 | 126 | if ( volr == volt ) volume = NULL; \ |
| 127 | 127 | } else { \ |
| 128 | 128 | vol = 0; \ |
| 129 | + volr = 0; \ | |
| 129 | 130 | vold = 0; \ |
| 130 | 131 | volt = 0; \ |
| 131 | 132 | volm = 0; \ |
| @@ -187,6 +188,7 @@ DUMB_RESAMPLER *dumb_start_resampler(SRCTYPE *src, int src_channels, long pos, l · 55 unmodified lines | ||
| 187 | 188 | if ( lvolr == lvolt ) volume_left = NULL; \ |
| 188 | 189 | } else { \ |
| 189 | 190 | lvol = 0; \ |
| 191 | + lvolr = 0; \ | |
| 190 | 192 | lvold = 0; \ |
| 191 | 193 | lvolt = 0; \ |
| 192 | 194 | lvolm = 0; \ |
| @@ -200,6 +202,7 @@ DUMB_RESAMPLER *dumb_start_resampler(SRCTYPE *src, int src_channels, long pos, l · 7 unmodified lines | ||
| 200 | 202 | if ( rvolr == rvolt ) volume_right = NULL; \ |
| 201 | 203 | } else { \ |
| 202 | 204 | rvol = 0; \ |
| 205 | + rvolr = 0; \ | |
| 203 | 206 | rvold = 0; \ |
| 204 | 207 | rvolt = 0; \ |
| 205 | 208 | rvolm = 0; \ |