Open lunter2 opened 6 years ago
same error with mingw gcc command
D:\Projects\FrameworkLibs\zopfli>gcc src/zopfli/*.c -O2 -W -Wall -Wextra -Wno-unused-function -ansi -pedantic -lm -o zopfli
src/zopfli/cache.c: In function 'ZopfliInitCache':
src/zopfli/cache.c:36:51: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
36 | "Error: Out of memory. Tried allocating %lu bytes of memory.\n",
| ~~^
| |
| long unsigned int
| %llu
37 | (unsigned long)ZOPFLI_CACHE_LENGTH * 3 * blocksize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka long long unsigned int}
src/zopfli/cache.c:36:51: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
36 | "Error: Out of memory. Tried allocating %lu bytes of memory.\n",
| ~~^
| |
| long unsigned int
| %llu
37 | (unsigned long)ZOPFLI_CACHE_LENGTH * 3 * blocksize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t {aka long long unsigned int}
I try to compile zopfli 1.0.2 using: https://datapacket.dl.sourceforge.net/project/tdm-gcc/TDM-GCC%20Installer/tdm64-gcc-5.1.0-2.exe
d:\zopfli-zopfli-1.0.2>mingw32-make.exe gcc src/zopfli/blocksplitter.c src/zopfli/cache.c src/zopfli/deflate.c src/zopfli/gzip_container.c src/zopfli/hash.c src/zopfli/katajainen.c src/zopfli/lz77.c src/zopfli/squeeze.c src/zopfli/tree.c src/zopfli/util.c src/zopfli/zlib_container.c src/zopfli/zopfli_lib.c src/zopfli/zopfli_bin.c -W -Wall -Wextra -ansi -pedantic -lm -O2 -Wno-unused-function -o zopfli src/zopfli/cache.c: In function 'ZopfliInitCache': src/zopfli/cache.c:36:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t {aka long long unsigned int}' [-Wformat=] "Error: Out of memory. Tried allocating %lu bytes of memory.\n", ^