From 15a982f90f66752e56e4971d1314525c017ae02f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 27 Oct 2014 09:48:38 -0700 Subject: Quiet some warnings Signed-off-by: Dirk Hohndel --- file.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/file.c b/file.c index 77fca04ce..da5ea830d 100644 --- a/file.c +++ b/file.c @@ -450,14 +450,13 @@ int parse_txt_file(const char *filename, const char *csv) if (MATCH(memtxt.buffer, "MkVI_Config") == 0) { int d, m, y; int hh = 0, mm = 0, ss = 0; - int prev_depth = 0, cur_sampletime = 0, prev_setpoint; + int prev_depth = 0, cur_sampletime = 0, prev_setpoint = -1; bool has_depth = false, has_setpoint = false; char *lineptr; struct dive *dive; struct divecomputer *dc; struct tm cur_tm; - timestamp_t date; if (sscanf(parse_mkvi_value(memtxt.buffer, "Dive started at"), "%d-%d-%d %d:%d:%d", &y, &m, &d, &hh, &mm, &ss) != 6) { @@ -511,8 +510,6 @@ int parse_txt_file(const char *filename, const char *csv) } lineptr = memcsv.buffer; for (;;) { - char *end; - double val; struct sample *sample; int type; int value; -- cgit v1.2.3-70-g09d2