From: Thomas Geymayer Date: Mon, 22 Sep 2014 16:24:13 +0000 (+0200) Subject: Fix compiler warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=deceee899771b82b0568319863b3812b272c926d;p=simgear.git Fix compiler warnings. --- diff --git a/simgear/package/ioapi_mem.c b/simgear/package/ioapi_mem.c index 17d3cb41..15b207a2 100644 --- a/simgear/package/ioapi_mem.c +++ b/simgear/package/ioapi_mem.c @@ -88,7 +88,7 @@ voidpf ZCALLBACK fopen_mem_func (opaque, filename, mode) * size of an int and therefore may need addressing for 64bit * architectures */ - if (sscanf(filename,"%p+%x",&mem->base,&mem->size)!=2) + if (sscanf(filename,"%p+%lx",&mem->base,&mem->size)!=2) return NULL; if (mode & ZLIB_FILEFUNC_MODE_CREATE) @@ -202,7 +202,7 @@ int ZCALLBACK ferror_mem_func (opaque, stream) voidpf opaque; voidpf stream; { - ourmemory_t *mem = (ourmemory_t *)stream; + // ourmemory_t *mem = (ourmemory_t *)stream; /* We never return errors */ return 0; }