I created the MAYBE_UNUSED macro in encoder/basisu_bc7enc.cpp because one of the unused sets stores the return value of a function call that looks important and a different warning is likely if I remove the assignment thus ignoring the return value.
There is another of these warnings in zstd/zstd.c. Because any fix would have to be redone whenever the single file decoder is regenerated I supressed the warning for that file in my build.
Here is a patch. (GitHub does not allow uploading .patch files so I'm pasting the text)
I created the
MAYBE_UNUSED
macro in encoder/basisu_bc7enc.cpp because one of the unused sets stores the return value of a function call that looks important and a different warning is likely if I remove the assignment thus ignoring the return value.There is another of these warnings in zstd/zstd.c. Because any fix would have to be redone whenever the single file decoder is regenerated I supressed the warning for that file in my build.