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

openexrcore/encoding.c: warning: format specifies type 'unsigned long' but the argument has type 'size_t' #1529

Closed
claudeha opened this issue Aug 29, 2023 · 2 comments

Comments

@claudeha
Copy link

When cross-compiling openexr-3.2.0-rc4 from Debian Bookworm x86_64 to Windows aarch64 and armv7 using llvm-mingw, I get a single warning for each:

aarch64:

/home/claude/opt/windows/posix/aarch64/src/openexr-3.2.0-rc4/src/lib/OpenEXRCore/encoding.c:35:13: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned long long') [-Wformat]
            exr_compress_max_buffer_size (encode->packed_bytes));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

armv7:

/home/claude/opt/windows/posix/armv7/src/openexr-3.2.0-rc4/src/lib/OpenEXRCore/encoding.c:35:13: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
            exr_compress_max_buffer_size (encode->packed_bytes));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(I don't have any ARM Windows machines to test with so I don't know how significant this is...)

@cary-ilm
Copy link
Member

@claudeha, this should be addressed by #1534, can you confirm?

@cary-ilm
Copy link
Member

Closing for now since #1534 should resolve it, but feel free to reopen or submit a new issue if something is still amiss.

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

No branches or pull requests

2 participants