diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-09-23 17:38:41 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-23 09:14:52 -0700 |
commit | 4c5c7e17338604fe7534a6b451b1789dff55a37c (patch) | |
tree | 64ca4d00b25bd29b5e05f8ad7f09c789304719ad /load-git.c | |
parent | b4b16ab7ab8c72b867c4cd8f2b13a1e59ac0fe6e (diff) | |
download | subsurface-4c5c7e17338604fe7534a6b451b1789dff55a37c.tar.gz |
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>
Diffstat (limited to 'load-git.c')
-rw-r--r-- | load-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/load-git.c b/load-git.c index e6e0840ab..d50a53d6c 100644 --- a/load-git.c +++ b/load-git.c @@ -306,7 +306,7 @@ static void parse_site_geo(char *line, struct membuffer *str, void *_ds) if (nr < TC_NR_CATEGORIES) { struct taxonomy *t = &ds->taxonomy.category[nr]; 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++; } } |