Engine Compiler Error (Github-Source-Release)

Hello,

I cloned the current release branch from Github which I believe is 4.25, and I’m running XCode Version 12.0.1 (12A7300) on MacOS Catalina 10.15.6 and I’m unable to compile Unreal Engine. I’m receiving two errors (Shell Script Invocation Error) in LandscapeEditLayers.cpp. The errors are on line 2050 and 2081 in DrawWeightmapComponentsToRenderTarget

DrawWeightmapComponentsToRenderTarget(OutputDebugName ? FString::Printf(TEXT(“LS Weight: %s = → %s Mips %d”), *ReadMipRT->GetName(), *WriteMipRT->GetName(), CurrentMip) : GEmptyDebugName,
SectionBaseToDraw, WeightmapScaleBias, nullptr, ReadMipRT, nullptr, WriteMipRT, ERTDrawingType::RTMips, InClearRTWrite, InShaderParams, CurrentMip++);

And DrawHeightmapComponentsToRenderTarget.

DrawHeightmapComponentsToRenderTarget(OutputDebugName ? FString::Printf(TEXT(“LS Height: %s = → %s CombinedAtlasWithMips %d”), *ReadMipRT->GetName(), *WriteMipRT->GetName(), CurrentMip) : GEmptyDebugName,
InComponentsToDraw, InLandscapeBase, ReadMipRT, nullptr, WriteMipRT, ERTDrawingType::RTMips, InClearRTWrite, InShaderParams, CurrentMip++);

The specific error is Unsequenced modification and access to ‘CurrentMip’

It seems to occur when attempting to increment CurrentMip++

Hi, I have the same error while compiling on Mac, Catalina 10.15.4, I’m building Unreal Engine “4.25.2-release” tag through command line to create a shipping package. I get these errors.

How to solve this?

ActionThread.ActionDebugOutput: In file included from /Users/luke/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/Landscape/Module.Landscape.2_of_4.cpp:3:
ActionThread.ActionDebugOutput: /Users/luke/UnrealEngine/Engine/Source/Runtime/Landscape/Private/LandscapeEditLayers.cpp:2050:160: error: unsequenced modification and access to ‘CurrentMip’ [-Werror,-Wunsequenced]
ActionThread.ActionDebugOutput: SectionBaseToDraw, WeightmapScaleBias, nullptr, ReadMipRT, nullptr, WriteMipRT, ERTDrawingType::RTMips, InClearRTWrite, InShaderParams, CurrentMip++);
ActionThread.ActionDebugOutput: ^
ActionThread.ActionDebugOutput: /Users/luke/UnrealEngine/Engine/Source/Runtime/Landscape/Private/LandscapeEditLayers.cpp:2081:150: error: unsequenced modification and access to ‘CurrentMip’ [-Werror,-Wunsequenced]
ActionThread.ActionDebugOutput: InComponentsToDraw, InLandscapeBase, ReadMipRT, nullptr, WriteMipRT, ERTDrawingType::RTMips, InClearRTWrite, InShaderParams, CurrentMip++);
ActionThread.ActionDebugOutput: ^
ActionThread.ActionDebugOutput: 2 errors generated.