fix warnings in generated code