cpp: appease some gcc unused parameter warnings in generated code