diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-10 20:27:13 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-10 20:27:13 +0000 |
commit | 713b83f7b406858269863d92865b715470d6335c (patch) | |
tree | 79eb2733939d29388f0776f68da4b053427a61c9 /src/minizip/zip.c | |
parent | 82e61ae9d68114bdcd6fafdb8bf823ae9ce69bef (diff) |
Added the following compiler flags:
* -Wcast-qual
* -Wmissing-parameter-type
* -Wold-style-definition
Diffstat (limited to 'src/minizip/zip.c')
-rw-r--r-- | src/minizip/zip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/minizip/zip.c b/src/minizip/zip.c index b0d83e2..52d7e72 100644 --- a/src/minizip/zip.c +++ b/src/minizip/zip.c @@ -33,6 +33,7 @@ # include <stddef.h> # include <string.h> # include <stdlib.h> +# include <stdint.h> #endif #ifdef NO_ERRNO_H extern int errno; @@ -238,7 +239,7 @@ local int add_data_in_datablock(linkedlist_data* ll, const void* buf, uLong len) } ldi = ll->last_block; - from_copy = (unsigned char*)buf; + from_copy = (const unsigned char*)buf; while (len>0) { @@ -1450,7 +1451,7 @@ extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned in else #endif { - zi->ci.stream.next_in = (Bytef*)buf; + zi->ci.stream.next_in = (void*) (uintptr_t) buf; zi->ci.stream.avail_in = len; while ((err==ZIP_OK) && (zi->ci.stream.avail_in>0)) |