Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler error on Linux (native) #421

Open
schowdhuri opened this issue Jun 20, 2021 · 0 comments
Open

Compiler error on Linux (native) #421

schowdhuri opened this issue Jun 20, 2021 · 0 comments

Comments

@schowdhuri
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant