https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70881
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The warning looks good to me, while you "use" img1 in a macro, that macro is never used, just try g++ -E on your testcase. Did you mean not to use \ at the end of line preceeding _IMGPP_APPLY_GRAY_ALL(_IMGPP_CASE) by any chance?