Skip to content

sttb_image: Unused functions when STBI_NO_JPEG is defined #1648

@BlackMightyRavenDark

Description

@BlackMightyRavenDark

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions