mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
Fix -Wuninitialized
../perf/cairo-perf-chart.c:232:4: warning: variable 'sum' is uninitialized when used here [-Wuninitialized]
sum += v/100;
^~~
../perf/cairo-perf-chart.c:142:43: note: initialize the variable 'sum' to silence this warning
double slow_sum = 0, fast_sum = 0, sum;
^
= 0.0
This commit is contained in:
parent
b588a43fcd
commit
c6a27dc28b
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ find_ranges (struct chart *chart)
|
|||
double test_time;
|
||||
int seen_non_null;
|
||||
int num_tests = 0;
|
||||
double slow_sum = 0, fast_sum = 0, sum;
|
||||
double slow_sum = 0, fast_sum = 0, sum = 0;
|
||||
int slow_count = 0, fast_count = 0;
|
||||
int *count;
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue