diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-01 15:22:05 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-03 16:09:14 +0100 |
commit | 01d158d1c8295474fa2034612487b36a47adfd1d (patch) | |
tree | bcf43db50fc4b551283187b943e0fb7b50bb1685 /libswresample | |
parent | a4798a5d5109cd9c1b5682efe19660e825da97e6 (diff) | |
download | ffmpeg-01d158d1c8295474fa2034612487b36a47adfd1d.tar.gz |
all: Remove unused-but-set variables
Newer versions of Clang detect this and emit warnings for it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libswresample')
-rw-r--r-- | libswresample/tests/swresample.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libswresample/tests/swresample.c b/libswresample/tests/swresample.c index 53896585e2..14a8f14f3e 100644 --- a/libswresample/tests/swresample.c +++ b/libswresample/tests/swresample.c @@ -362,16 +362,12 @@ int main(int argc, char **argv){ for(ch=0; ch<in_ch_count; ch++){ double sse, maxdiff=0; - double sum_a= 0; - double sum_b= 0; double sum_aa= 0; double sum_bb= 0; double sum_ab= 0; for(i=0; i<out_count; i++){ double a= get(ain , ch, i, in_ch_count, in_sample_fmt); double b= get(aout, ch, i, in_ch_count, in_sample_fmt); - sum_a += a; - sum_b += b; sum_aa+= a*a; sum_bb+= b*b; sum_ab+= a*b; @@ -392,16 +388,12 @@ int main(int argc, char **argv){ if(flush_count){ for(ch=0; ch<in_ch_count; ch++){ double sse, maxdiff=0; - double sum_a= 0; - double sum_b= 0; double sum_aa= 0; double sum_bb= 0; double sum_ab= 0; for(i=0; i<flush_count; i++){ double a= get(ain , ch, i+out_count, in_ch_count, in_sample_fmt); double b= get(aout, ch, i, in_ch_count, in_sample_fmt); - sum_a += a; - sum_b += b; sum_aa+= a*a; sum_bb+= b*b; sum_ab+= a*b; |