#include <glib.h>
#include <time.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
gdouble *vik_track_make_speed_map ( const VikTrack *tr, guint16 num_chunks )
{
gdouble *v, *s, *t;
- gdouble duration, chunk_dur, T, s_prev, s_now;
+ gdouble duration, chunk_dur;
time_t t1, t2;
int i, pt_count, numpts, index;
GList *iter;
return NULL;
if (duration < 0) {
- g_warning("negative duration: unsorted trackpoint timestamps?\n");
+ g_warning("negative duration: unsorted trackpoint timestamps?");
return NULL;
}
pt_count = vik_track_get_tp_count(tr);