rwpng.c: error: passing argument 3 of png_get_IHDR from incompatible pointer type
Brought to you by:
dr_saturn
First reported on Gentoo Linux with GCC14. It was caught due to newer compilers like GCC 14 and Clang 16 (and above) enable certain flags by default. In this case it was the -Wincompatible-pointer-types compiler that resulted in the this error being reported.
More information can be found at https://bugs.gentoo.org/919210.
I'll be attaching my attempt at fixing the bug.