MAINT: fix unused variable warning
MAINT: ignore some more generated C files
Merge pull request #4365 from larsmans/c-fixes

MAINT: fix unused variable warning