There are macros for this (although they may be defined empty on certain platforms/compilers)
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
and PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS
. Additionally each *.Build.cs
File can set ShadowVariableWarningLevel
on the ModuleRules
which can be set to either Off
, Warning
or Error
.
3 Likes