From: "Lubomir I. Ivanov" <neolit...@gmail.com>

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 <neolit...@gmail.com>
---
untested!
---
 load-git.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/load-git.c b/load-git.c
index e6e0840..d50a53d 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++;
        }
 }
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to