Compiling for Android, which I believe uses GCC under the hood, I get this output:
include/webp/decode.h:164:24: warning: 'int _WebPIsAlphaMode(WEBP_CSP_MODE)' defined but not used [-Wunused-function]
include/webp/decode.h:170:24: warning: 'int WebPIsRGBMode(WEBP_CSP_MODE)' defined but not used [-Wunused-function]
include/webp/decode.h:214:24: warning: 'int WebPInitDecBuffer(WebPDecBuffer*)' defined but not used [-Wunused-function]
include/webp/decode.h:352:29: warning: 'uint8_t* WebPIDecGetYUV(const WebPIDecoder*, int*, uint8_t**, uint8_t**, int*, int*, int*, int*)' defined but not used [-Wunused-function]
include/webp/decode.h:466:24: warning: 'int WebPInitDecoderConfig(WebPDecoderConfig*)' defined but not used [-Wunused-function]
Also, similar warnings for encode.h.
My question is, why are these in the header to begin with?
These warnings show up for every file that includes these headers. I assume they would be optimized out of the translation unit if the are not used, though not positive. Either way, when I am looking for warnings/errors in my code, it's kind of annoying to have a bunch of webp warning obscuring them. I could always use the -Wunused-function flag as stated in the output, but then I will miss any unused functions in my own code. Just seems to make sense to either take them out of the header or make them a true macro or dummy template if the code really needs to be in the header (again, why?)
I love webp btw, thank you!
-Shaun