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

ISO C restricts enumerator values to range of ‘int’ [-Wpedantic] #13

Open
nemequ opened this issue May 24, 2016 · 0 comments
Open

Comments

@nemequ
Copy link

nemequ commented May 24, 2016

When compiling code which uses LZHAM with -Wpedantic:

/home/nemequ/local/src/squash/plugins/lzham/lzham/include/lzham.h:104:39: warning: ISO C restricts enumerator values to range of ‘int’ [-Wpedantic]
       LZHAM_COMP_STATUS_FORCE_DWORD = 0xFFFFFFFF
                                       ^
/home/nemequ/local/src/squash/plugins/lzham/lzham/include/lzham.h:117:38: warning: ISO C restricts enumerator values to range of ‘int’ [-Wpedantic]
       LZHAM_COMP_LEVEL_FORCE_DWORD = 0xFFFFFFFF
                                      ^

To be clear, you don't have to compile LZHAM with -Wpedantic to see this issue, it's in a public header so anything which simply uses LZHAM and wants to compile with -Wpedantic will hit it.

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

1 participant