Advanced Runtime Logging UE5 plugin — Solution for Real-Time Logs in Editor or Shipping Builds

UE5.5.4 source build. Error when building a server:

[1/10] Compile [x64] Module.GLS.3.cpp
...\Plugins\GAMELOGS395012943053V4\Source\GLS\Private\Utils\GLSUtils.cpp(254) : error C4702: unreachable code
   while compiling FGLSUtils::IsGLSEnabled

fix:


bool FGLSUtils::IsGLSEnabled()
{
#if UE_SERVER
    if (true){
        return false;
    }
#endif

#if !defined(GLS_ENABLED) || !GLS_ENABLED
    if (true){
        return false;
    }
#endif
1 Like