Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Source/VisualStudioTools/VisualStudioTools.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ public VisualStudioTools(ReadOnlyTargetRules Target) : base(Target)
// proper local variable inspection and less inlined stack frames
OptimizeCode = CodeOptimization.Never;

// Enable more restrict warnings during compilation in UE5.
// Enable more restricted warnings during compilation in UE5.
// Required by tasks in the compliance pipeline.
if (Target.Version.MajorVersion >= 5)
{
#if UE_5_6_OR_LATER
CppCompileWarningSettings.UnsafeTypeCastWarningLevel = WarningLevel.Error;
#elif UE_5_0_OR_LATER
UnsafeTypeCastWarningLevel = WarningLevel.Error;
}
#endif
}
else
{
Expand Down