There doesn't appear to be a way to prevent the code generator from including the warning.
Intellisense should help you suppress the warning with a #pragma warning directive, but in case it doesn't, here's what it looks like to add the directive manually:
#pragma warning disable CS1030 // #warning directive
#warning "You will need to configure the type info."
public static readonly ObjectTypeInfo TYPEINFO = new ObjectTypeInfo(yada yada yada)
#pragma warning restore CS1030 // #warning directive
{
ModuleName = "whatevs",
TouchCacheDependencies = true,
};