Compiler error on Linux (native)
schowdhuri opened this issue · 0 comments
schowdhuri commented
Type narrowing error encountered on Linux:
In file included from /home/ue4/UnrealEngine/Engine/Plugins/VoxelPlugin/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/VoxelEditor/Module.VoxelEditor.cpp:25:
/home/ue4/UnrealEngine/Engine/Plugins/VoxelPlugin/Source/VoxelEditor/Private/Details/VoxelPaintMaterialCustomization.cpp:363:63: error: non-constant-expression cannot be
narrowed from type 'int32' (aka 'int') to 'uint8' (aka 'unsigned char') in initializer list [-Wc++11-narrowing]
const FVoxelMaterialCollectionMaterialInfo MaterialInfo{ Index, Material, *FString::Printf(TEXT("Index %03d"), Index) };
^~~~~
/home/ue4/UnrealEngine/Engine/Plugins/VoxelPlugin/Source/VoxelEditor/Private/Details/VoxelPaintMaterialCustomization.cpp:363:63: note: insert an explicit cast to silence this issue
const FVoxelMaterialCollectionMaterialInfo MaterialInfo{ Index, Material, *FString::Printf(TEXT("Index %03d"), Index) };
^~~~~
static_cast<uint8>( )
Unreal Engine: 4.26
Distro: Ubuntu 20.04
I rolled back this change to get past the error:
#388
Is there a better workaround - perhaps a CLI flag which can be passed to make UE4Editor
?