mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Clean compile time nits
Lots of nitty fixups, largely for uninitialised temporary variables. I have left the use of boost::function and boost::bind in the DownloadRideDialog alone, so it will vomit when compiled with boost 1.46 and gcc 4.5 or higher. Will look into this more carefully at a later stage. I am working up to resolving issues identified from -pedantic next.
This commit is contained in:
@@ -442,10 +442,10 @@ MeanMaxComputer::integrate_series(cpintdata &data)
|
||||
data_t
|
||||
MeanMaxComputer::partial_max_mean(data_t *dataseries_i, int start, int end, int length, int *offset)
|
||||
{
|
||||
int i;
|
||||
int i=0;
|
||||
data_t candidate=0;
|
||||
|
||||
int best_i;
|
||||
int best_i=0;
|
||||
|
||||
for (i=start; i<(1+end-length); i++) {
|
||||
data_t test_energy=dataseries_i[length+i]-dataseries_i[i];
|
||||
@@ -473,12 +473,12 @@ MeanMaxComputer::divided_max_mean(data_t *dataseries_i, int datalength, int leng
|
||||
if (window_length>datalength) window_length=datalength;
|
||||
|
||||
// put down as many windows as will fit without overrunning data
|
||||
int start;
|
||||
int end;
|
||||
data_t energy;
|
||||
int start=0;
|
||||
int end=0;
|
||||
data_t energy=0;
|
||||
|
||||
data_t candidate=0;
|
||||
int this_offset;
|
||||
int this_offset=0;
|
||||
|
||||
for (start=0; start+window_length<=datalength; start+=shift) {
|
||||
end=start+window_length;
|
||||
|
||||
Reference in New Issue
Block a user