UBT refuses to build my project because one of the headers I have included causes a warning.
Is there a way to disable to compiler flag without rebuilding UBT or the engine with vs2013?
The approach we normally take internally if we absolutely cannot fix a warning is to add:
#pragma warning(disable: <warning code>)
Before the offending header. We don’t generally run completely without warnings. If you still want to check for that warning in other code you may want to wrap it with #pragma warning(push) and #pragma warning(pop) statements.
Yup. this will do. Thanks.
Also note that you should just include the numeric part of the error code. If your code is “C1234” do “#pragma warning(disable: 1234)”.