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

stb_image: Define JPEG-specific functions only when JPEG is needed #1707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccatgirl
Copy link

There are two functions that are only used for JPEG reading.
If JPEG is not wanted (STBI_NO_JPEG) they are still defined and cause errors when compiling with -Wall -Werror -pedantic.
This pull request fixes that and also closes #1648.
Maybe it's better to put the code for those two functions into a different location?

@ccatgirl ccatgirl changed the title Define JPEG-specific functions only when JPEG is needed stb_image: Define JPEG-specific functions only when JPEG is needed Oct 17, 2024
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

Successfully merging this pull request may close these issues.

sttb_image: Unused functions when STBI_NO_JPEG is defined
1 participant