Mitigate several unused-declaration warnings in generated code.
See tests/nowarn/unused for the specific cases.