Newer versions of Clang detect this and emit warnings for it.
Showing the changes to libavfilter (1 of 8 files). Show all
Unified · Split
| @@ -403,7 +403,6 @@ static void set_metadata(AudioStatsContext *s, AVDictionary **metadata) · 402 unmodified lines | |||
| 403 | max_sigma_x = 0, | 403 | max_sigma_x = 0, |
| 404 | diff1_sum = 0, | 404 | diff1_sum = 0, |
| 405 | diff1_sum_x2 = 0, | 405 | diff1_sum_x2 = 0, |
| 406 | sigma_x = 0, | ||
| 407 | sigma_x2 = 0, | 406 | sigma_x2 = 0, |
| 408 | noise_floor = 0, | 407 | noise_floor = 0, |
| 409 | entropy = 0, | 408 | entropy = 0, |
| @@ -428,7 +427,6 @@ static void set_metadata(AudioStatsContext *s, AVDictionary **metadata) · 18 unmodified lines | |||
| 428 | diff1_sum_x2 += p->diff1_sum_x2; | 427 | diff1_sum_x2 += p->diff1_sum_x2; |
| 429 | min_sigma_x2 = FFMIN(min_sigma_x2, p->min_sigma_x2); | 428 | min_sigma_x2 = FFMIN(min_sigma_x2, p->min_sigma_x2); |
| 430 | max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2); | 429 | max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2); |
| 431 | sigma_x += p->sigma_x; | ||
| 432 | sigma_x2 += p->sigma_x2; | 430 | sigma_x2 += p->sigma_x2; |
| 433 | noise_floor = FFMAX(noise_floor, p->noise_floor); | 431 | noise_floor = FFMAX(noise_floor, p->noise_floor); |
| 434 | noise_floor_count += p->noise_floor_count; | 432 | noise_floor_count += p->noise_floor_count; |
| @@ -659,7 +657,6 @@ static void print_stats(AVFilterContext *ctx) · 224 unmodified lines | |||
| 659 | max_sigma_x = 0, | 657 | max_sigma_x = 0, |
| 660 | diff1_sum_x2 = 0, | 658 | diff1_sum_x2 = 0, |
| 661 | diff1_sum = 0, | 659 | diff1_sum = 0, |
| 662 | sigma_x = 0, | ||
| 663 | sigma_x2 = 0, | 660 | sigma_x2 = 0, |
| 664 | noise_floor = 0, | 661 | noise_floor = 0, |
| 665 | entropy = 0, | 662 | entropy = 0, |
| @@ -684,7 +681,6 @@ static void print_stats(AVFilterContext *ctx) · 18 unmodified lines | |||
| 684 | diff1_sum += p->diff1_sum; | 681 | diff1_sum += p->diff1_sum; |
| 685 | min_sigma_x2 = FFMIN(min_sigma_x2, p->min_sigma_x2); | 682 | min_sigma_x2 = FFMIN(min_sigma_x2, p->min_sigma_x2); |
| 686 | max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2); | 683 | max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2); |
| 687 | sigma_x += p->sigma_x; | ||
| 688 | sigma_x2 += p->sigma_x2; | 684 | sigma_x2 += p->sigma_x2; |
| 689 | noise_floor = FFMAX(noise_floor, p->noise_floor); | 685 | noise_floor = FFMAX(noise_floor, p->noise_floor); |
| 690 | p->entropy = calc_entropy(s, p); | 686 | p->entropy = calc_entropy(s, p); |