From 4c5c7e17338604fe7534a6b451b1789dff55a37c Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 23 Sep 2015 17:38:41 +0300 Subject: load-git.c: fix warning about sscanf() argument Type of the 4th argument is detected as "enum *", we cast it to (int *) when passed to sscanf(). Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- load-git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'load-git.c') 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++; } } -- cgit v1.2.3-70-g09d2