C4702 generated for compilation of PixelStreaming2RTCModule.cpp when building installed editor

Hello!

Running a build for installed editor via source for UE 5.6.1 generates a C4702 error via PixelStreaming2RTCModule.cpp on our build machines. The issue is identical to the following additional EPS posts:

  • [Content removed]
  • [Content removed]

Both of these questions are answered with a reference to this Unreal Engine Issues and Bug Tracker (UE\-290632), however this seems to be nonexistent. The fix mentioned in one of the posts with wrapping the function with an #else and #endif allows the build to pass cleanly.

Can someone either direct us to the correct UE issue or a validated fix for this issue?

Thank you!

Steps to Reproduce

Reproed on our instance by running a normal editor install build script:

call Engine\Build\BatchFiles\RunUAT.bat BuildGraph -script=Engine/Build/InstalledEngineBuild.xml -target="Make Installed Build Win64" -nosign -set:GameConfigurations=Development;Shipping -set:WithWin64=true -set:WithAndroid=false -set:WithDDC=true -set:WithLinux=true -set:WithLinuxArm64=false -set:WithIOS=false -set:WithTVOS=false -set:WithMac=false -set:WithClient=true -set:WithServer=true -set:WithFullDebugInfo=true -nop4 -BUILDMACHINE

Hello,

The problem was addressed with CL#45174833 and commit: https://github.com/EpicGames/UnrealEngine/commit/e7924d47992211e9168b6273b34f04fa01ab9dd3

The fix is indeed the addition of #else and #endif to get rid if the unreachable code.

Regargs,

Martin

1 Like

Thank you very much! Great to know, and hopefully this thread can serve as guidance for anyone else needing to know this information.