mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-02 23:20:20 +00:00
load-git.c: fix warning about sscanf() argument
Type of the 4th argument is detected as "enum <anonymous> *", we cast it to (int *) when passed to sscanf(). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b4b16ab7ab
commit
4c5c7e1733
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ static void parse_site_geo(char *line, struct membuffer *str, void *_ds)
|
||||||
if (nr < TC_NR_CATEGORIES) {
|
if (nr < TC_NR_CATEGORIES) {
|
||||||
struct taxonomy *t = &ds->taxonomy.category[nr];
|
struct taxonomy *t = &ds->taxonomy.category[nr];
|
||||||
t->value = strdup(mb_cstring(str));
|
t->value = strdup(mb_cstring(str));
|
||||||
sscanf(line, "cat %d origin %d \"", &t->category, &t->origin);
|
sscanf(line, "cat %d origin %d \"", &t->category, (int *)&t->origin);
|
||||||
ds->taxonomy.nr++;
|
ds->taxonomy.nr++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue