This is really not good way to program things. This will lead to really bad bugs. Make always Parentheses
yaakuro@ub1310:~/UnrealEngineMaster$ make UnrealLightmass
Engine/Build/BatchFiles/Linux/Build.sh UnrealLightmass Linux Development
Building UnrealLightmass…
Using clang version ‘3.3’ (string), 3 (major), 3 (minor), -1 (patch)
Performing 3 actions (7 in parallel)
[2/3] Compile Module.UnrealLightmass.2_of_3.cpp
[1/3] Compile Module.UnrealLightmass.1_of_3.cpp
In file included from /home/yaakuro/UnrealEngineMaster/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/UnrealLightmass/Development/UnrealLightmass/Module.UnrealLightmass.2_of_3.cpp:6:
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(555,50) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
if (PathAlpha.R < DELTA && PathAlpha.G < DELTA && PathAlpha.B < DELTA
~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(555,50) : note: place parentheses around the ‘&&’ expression to silence this warning
if (PathAlpha.R < DELTA && PathAlpha.G < DELTA && PathAlpha.B < DELTA
~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(982,48) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1
~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(982,48) : note: place parentheses around the ‘&&’ expression to silence this warning
PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(983,52) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0;
~~ ^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(983,52) : note: place parentheses around the ‘&&’ expression to silence this warning
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0;
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(992,48) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 2
~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(992,48) : note: place parentheses around the ‘&&’ expression to silence this warning
PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 2
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(993,52) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1;
~~ ^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(993,52) : note: place parentheses around the ‘&&’ expression to silence this warning
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1;
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1228,47) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
if (PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0
~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1228,47) : note: place parentheses around the ‘&&’ expression to silence this warning
if (PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1409,48) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
if ((PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0
~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1409,48) : note: place parentheses around the ‘&&’ expression to silence this warning
if ((PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1428,48) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 1
~~ ~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1428,48) : note: place parentheses around the ‘&&’ expression to silence this warning
|| PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 1
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1429,49) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 0
~~ ~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1429,49) : note: place parentheses around the ‘&&’ expression to silence this warning
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 0
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1430,71) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| PhotonMappingSettings.bVisualizeCachedApproximateDirectLighting && GeneralSettings.ViewSingleBounceNumber == 0)
~~ ~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1430,71) : note: place parentheses around the ‘&&’ expression to silence this warning
|| PhotonMappingSettings.bVisualizeCachedApproximateDirectLighting && GeneralSettings.ViewSingleBounceNumber == 0)
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1437,47) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
if (PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1
~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1437,47) : note: place parentheses around the ‘&&’ expression to silence this warning
if (PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1438,48) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0)
~~ ^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1438,48) : note: place parentheses around the ‘&&’ expression to silence this warning
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 0)
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1454,48) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 2
~~ ~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1454,48) : note: place parentheses around the ‘&&’ expression to silence this warning
|| PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 2
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1455,49) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 1)
~~ ^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1455,49) : note: place parentheses around the ‘&&’ expression to silence this warning
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 1)
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1461,48) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
if (PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 2
~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1461,48) : note: place parentheses around the ‘&&’ expression to silence this warning
if (PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 2
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1462,49) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1)
~~ ~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1462,49) : note: place parentheses around the ‘&&’ expression to silence this warning
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.NumIndirectLightingBounces > 1)
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1478,49) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 3
~~ ~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1478,49) : note: place parentheses around the ‘&&’ expression to silence this warning
|| PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 3
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1479,50) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 2)
~~ ~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(1479,50) : note: place parentheses around the ‘&&’ expression to silence this warning
|| !PhotonMappingSettings.bUseFinalGathering && GeneralSettings.ViewSingleBounceNumber == 2)
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(2041,47) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
&& (CurrentPhoton.HasDirectContribution() && (DistanceSquared < FMath::Square(PhotonMappingSettings.DirectPhotonSearchDistance))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/PhotonMapping.cpp(2041,47) : note: place parentheses around the ‘&&’ expression to silence this warning
&& (CurrentPhoton.HasDirectContribution() && (DistanceSquared < FMath::Square(PhotonMappingSettings.DirectPhotonSearchDistance))
^
( )
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from /home/yaakuro/UnrealEngineMaster/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/UnrealLightmass/Development/UnrealLightmass/Module.UnrealLightmass.1_of_3.cpp:16:
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(314,49) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
if (ClosestIntersection.Mesh == LightRay.Mesh && ((ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWDISABLE) || (LightRay.TraceFlags & LIGHTRAY_SELFSHADOWDISABLE))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(314,49) : note: place parentheses around the ‘&&’ expression to silence this warning
if (ClosestIntersection.Mesh == LightRay.Mesh && ((ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWDISABLE) || (LightRay.TraceFlags & LIGHTRAY_SELFSHADOWDISABLE))
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(315,27) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| bDirectShadowingRay && ClosestIntersection.Mesh->IsIndirectlyShadowedOnly(ClosestIntersection.ElementIndex)
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(315,27) : note: place parentheses around the ‘&&’ expression to silence this warning
|| bDirectShadowingRay && ClosestIntersection.Mesh->IsIndirectlyShadowedOnly(ClosestIntersection.ElementIndex)
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(316,49) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| ClosestIntersection.Mesh != LightRay.Mesh && (ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWONLY))
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(316,49) : note: place parentheses around the ‘&&’ expression to silence this warning
|| ClosestIntersection.Mesh != LightRay.Mesh && (ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWONLY))
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(320,104) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
else if (ClosestIntersection.Mesh->IsMasked(ClosestIntersection.ElementIndex) || bDirectShadowingRay && ClosestIntersection.Mesh->IsCastingShadowsAsMasked(ClosestIntersection.ElementIndex))
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(320,104) : note: place parentheses around the ‘&&’ expression to silence this warning
else if (ClosestIntersection.Mesh->IsMasked(ClosestIntersection.ElementIndex) || bDirectShadowingRay && ClosestIntersection.Mesh->IsCastingShadowsAsMasked(ClosestIntersection.ElementIndex))
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(442,45) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
ClosestIntersection.Mesh == LightRay.Mesh && ((ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWDISABLE) || (LightRay.TraceFlags & LIGHTRAY_SELFSHADOWDISABLE)) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(442,45) : note: place parentheses around the ‘&&’ expression to silence this warning
ClosestIntersection.Mesh == LightRay.Mesh && ((ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWDISABLE) || (LightRay.TraceFlags & LIGHTRAY_SELFSHADOWDISABLE)) ||
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(444,45) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
ClosestIntersection.Mesh != LightRay.Mesh && (ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWONLY) ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(444,45) : note: place parentheses around the ‘&&’ expression to silence this warning
ClosestIntersection.Mesh != LightRay.Mesh && (ClosestIntersection.Mesh->LightingFlags & GI_INSTANCE_SELFSHADOWONLY) ||
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(445,23) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
bDirectShadowingRay && ClosestIntersection.Mesh->IsIndirectlyShadowedOnly(ClosestIntersection.ElementIndex))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/Collision.cpp(445,23) : note: place parentheses around the ‘&&’ expression to silence this warning
bDirectShadowingRay && ClosestIntersection.Mesh->IsIndirectlyShadowedOnly(ClosestIntersection.ElementIndex))
^
( )
In file included from /home/yaakuro/UnrealEngineMaster/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/UnrealLightmass/Development/UnrealLightmass/Module.UnrealLightmass.1_of_3.cpp:17:
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/FinalGather.cpp(782,33) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| bRefineForSkyOcclusion && MaxSkyOcclusionDifference > SkyOcclusionThreshold
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/FinalGather.cpp(782,33) : note: place parentheses around the ‘&&’ expression to silence this warning
|| bRefineForSkyOcclusion && MaxSkyOcclusionDifference > SkyOcclusionThreshold
^
( )
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/FinalGather.cpp(879,34) : error: ‘&&’ within ‘||’ [-Werror,-Wlogical-op-parentheses]
|| bRefineForSkyOcclusion && MaxSkyOcclusionDifference > SkyOcclusionThreshold
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/yaakuro/UnrealEngineMaster/Engine/Source/Programs/UnrealLightmass/Private/Lighting/FinalGather.cpp(879,34) : note: place parentheses around the ‘&&’ expression to silence this warning
|| bRefineForSkyOcclusion && MaxSkyOcclusionDifference > SkyOcclusionThreshold
^
( )
20 errors generated.
9 errors generated.
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: /home/yaakuro/UnrealEngineMaster/Engine/Binaries/Linux/UnrealLightmass
Cumulative action seconds (8 processors): 0.00 building projects, 4.70 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
UBT execution time: 3.98 seconds
make: *** [UnrealLightmass] Error 2