]> git.mxchange.org Git - simgear.git/commitdiff
Fix compiler warnings.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 22 Sep 2014 16:24:13 +0000 (18:24 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 22 Sep 2014 16:24:13 +0000 (18:24 +0200)
simgear/package/ioapi_mem.c

index 17d3cb4123d49c4965900bd44c270624a5ca6d53..15b207a26c722ea98146754a4ae28a1650b17332 100644 (file)
@@ -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;
 }