Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miniz bindings compile with an incompatible pointer type warning #120

Open
rdw-software opened this issue Nov 24, 2022 · 0 comments
Open

Comments

@rdw-software
Copy link
Member

In file included from Runtime/main.c:26:
Runtime/Bindings/lminiz.c: In function 'lmz_compress':
Runtime/Bindings/lminiz.c:420:34: warning: passing argument 2 of 'mz_compress2' from incompatible pointer type [-Wincompatible-pointer-types]
420 | ret = mz_compress2(outb, &out_len, inb, in_len, level);
| ^~~~~~~~
| |
| size_t * {aka long long unsigned int *}
In file included from Runtime/Bindings/lminiz.c:20:
Runtime/Bindings/../../deps/miniz.c:310:50: note: expected 'mz_ulong *' {aka 'long unsigned int *'} but argument is of type 'size_t *' {aka 'long long unsigned int *'}
310 | int mz_compress2(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level)
| ~~~~~~~~~~^~~~~~~~~
Runtime/Bindings/lminiz.c: In function 'lmz_uncompress':
Runtime/Bindings/lminiz.c:450:43: warning: passing argument 2 of 'mz_uncompress' from incompatible pointer type [-Wincompatible-pointer-types]
450 | ret = mz_uncompress(outb, &out_len, inb, in_len);
| ^~~~~~~~
| |
| size_t * {aka long long unsigned int *}
Runtime/Bindings/../../deps/miniz.c:550:51: note: expected 'mz_ulong *' {aka 'long unsigned int *'} but argument is of type 'size_t *' {aka 'long long unsigned int *'}
550 | int mz_uncompress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len)
| ~~~~~~~~~~^~~~~~~~~

Probably not a big deal, but having the log cluttered with warnings is mildly annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant