diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-10-27 09:48:38 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-27 09:48:38 -0700 |
commit | 15a982f90f66752e56e4971d1314525c017ae02f (patch) | |
tree | 34245175f4119794de33c05c6fec48f86ebf25ac /file.c | |
parent | 5ec3d0dca03b13efbf07e898296a8aa64deacc98 (diff) | |
download | subsurface-15a982f90f66752e56e4971d1314525c017ae02f.tar.gz |
Quiet some warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |