fixed some compiler warnings in generated code