Quantcast
Channel: General - Epic Developer Community Forums
Viewing all articles
Browse latest Browse all 9593

Please allow AssignmentWithinConditionalExpressionWarningLevel, warning c4706: assignment within conditional expression

$
0
0

Please allow warning c4706 to be ignored.
While it is possible to do something like this:

if(auto MyActorOfType = Cast<AMyActorOfType>(Actor))
{
}

It is impossible to do something like this which is frustrating at times:

if(MyMemberActorOfType = Cast<AMyActorOfType>(Actor))
{
}

The following .Target.cs options exist:

ShadowVariableWarningLevel = WarningLevel.Off;
UnsafeTypeCastWarningLevel = WarningLevel.Off;

Can’t we simply get AssignmentWithinConditionalExpressionWarningLevel = WarningLevel.Off;

AdditionalCompilerArguments, bOverrideBuildEnvironment, TargetBuildEnvironment.Unique are not viable options for me.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 9593

Trending Articles