Variables may be unused in generated apply*()