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

sttb_image: Unused functions when STBI_NO_JPEG is defined #1648

Open
BlackMightyRavenDark opened this issue Jun 7, 2024 · 0 comments
Open

Comments

@BlackMightyRavenDark
Copy link

BlackMightyRavenDark commented Jun 7, 2024

When defining STBI_NO_JPEG, the GCC compiler starts to show warnings:

stb_image.h:1078:12: warning: 'int stbi__mul2shorts_valid(int, int)' defined but not used [-Wunused-function] 1078 | static int stbi__mul2shorts_valid(int a, int b) stb_image.h:1070:12: warning: 'int stbi__addints_valid(int, int)' defined but not used [-Wunused-function] 1070 | static int stbi__addints_valid(int a, int b)

So, these functions must be wrapped into #ifndef STBI_NO_JPEG (maybe something else).

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