Skip to content

Mark lodepng_convert_rgb() static#170

Open
hpjansson wants to merge 1 commit into
lvandeve:masterfrom
hpjansson:missing-prototype
Open

Mark lodepng_convert_rgb() static#170
hpjansson wants to merge 1 commit into
lvandeve:masterfrom
hpjansson:missing-prototype

Conversation

@hpjansson

Copy link
Copy Markdown
Contributor

It's probably not that useful as exported API and was generating a warning when compiled as C with -Wmissing-prototypes. Also saves on code size when compiled without encoder/ancillary chunks.

Alternately, one could add a prototype for it in lodepng.h and move the doc comment there.

It's probably not that useful as exported API and was generating a
warning when compiled as C with -Wmissing-prototypes.
@petterreinholdtsen

Copy link
Copy Markdown

The latter approach was used by Debian in https://sources.debian.org/src/lodepng/0.0~git20241228.0b1d9cc-1/debian/patches/add-missing-api.patch . Perhaps choose which approach is most suitable and include it in the master branch?

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.

2 participants