From 78f964d605336c030283fbda45d426ac3c7173ec Mon Sep 17 00:00:00 2001 From: Peter Meerwald-Stadler Date: Wed, 6 Sep 2017 11:26:15 +0200 Subject: [PATCH] core: Fix typo and gcc-7 -Wimplicit-fallthrough= warnings Correct spelling of 'through' in a comment helps to fix a warning :) also drop some unrelated comments Signed-off-by: Peter Meerwald-Stadler --- src/pulsecore/resampler.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index 063c4c5..d42cbc2 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -161,7 +161,7 @@ static pa_resample_method_t fix_method( method = PA_RESAMPLER_AUTO; break; } - /* Else fall through */ + /* Else fall through */ case PA_RESAMPLER_FFMPEG: case PA_RESAMPLER_SOXR_MQ: case PA_RESAMPLER_SOXR_HQ: @@ -273,20 +273,20 @@ static pa_sample_format_t choose_work_format( switch (method) { /* This block is for resampling functions that only * support the S16 sample format. */ - case PA_RESAMPLER_SPEEX_FIXED_BASE: /* fall through */ + case PA_RESAMPLER_SPEEX_FIXED_BASE: case PA_RESAMPLER_FFMPEG: work_format = PA_SAMPLE_S16NE; break; /* This block is for resampling functions that support * any sample format. */ - case PA_RESAMPLER_COPY: /* fall through */ + case PA_RESAMPLER_COPY: case PA_RESAMPLER_TRIVIAL: if (!map_required && a == b) { work_format = a; break; } - /* Else fall trough */ + /* Else fall through */ case PA_RESAMPLER_PEAKS: /* PEAKS, COPY and TRIVIAL do not benefit from increased * working precision, so for better performance use s16ne @@ -295,7 +295,7 @@ static pa_sample_format_t choose_work_format( work_format = PA_SAMPLE_S16NE; break; } - /* Else fall trough */ + /* Else fall through */ case PA_RESAMPLER_SOXR_MQ: case PA_RESAMPLER_SOXR_HQ: case PA_RESAMPLER_SOXR_VHQ: -- 2.7.4