mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Quiet some warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5ec3d0dca0
commit
15a982f90f
1 changed files with 1 additions and 4 deletions
5
file.c
5
file.c
|
@ -450,14 +450,13 @@ int parse_txt_file(const char *filename, const char *csv)
|
||||||
if (MATCH(memtxt.buffer, "MkVI_Config") == 0) {
|
if (MATCH(memtxt.buffer, "MkVI_Config") == 0) {
|
||||||
int d, m, y;
|
int d, m, y;
|
||||||
int hh = 0, mm = 0, ss = 0;
|
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;
|
bool has_depth = false, has_setpoint = false;
|
||||||
char *lineptr;
|
char *lineptr;
|
||||||
|
|
||||||
struct dive *dive;
|
struct dive *dive;
|
||||||
struct divecomputer *dc;
|
struct divecomputer *dc;
|
||||||
struct tm cur_tm;
|
struct tm cur_tm;
|
||||||
timestamp_t date;
|
|
||||||
|
|
||||||
if (sscanf(parse_mkvi_value(memtxt.buffer, "Dive started at"), "%d-%d-%d %d:%d:%d",
|
if (sscanf(parse_mkvi_value(memtxt.buffer, "Dive started at"), "%d-%d-%d %d:%d:%d",
|
||||||
&y, &m, &d, &hh, &mm, &ss) != 6) {
|
&y, &m, &d, &hh, &mm, &ss) != 6) {
|
||||||
|
@ -511,8 +510,6 @@ int parse_txt_file(const char *filename, const char *csv)
|
||||||
}
|
}
|
||||||
lineptr = memcsv.buffer;
|
lineptr = memcsv.buffer;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
char *end;
|
|
||||||
double val;
|
|
||||||
struct sample *sample;
|
struct sample *sample;
|
||||||
int type;
|
int type;
|
||||||
int value;
|
int value;
|
||||||
|
|
Loading…
Add table
Reference in a new issue