Skip to content

Commit 473a516

Browse files
committed
Fix macOS build
1 parent a6cba2f commit 473a516

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/robots/common/twoDModel/src/engine/model/physics/box2DPhysicsEngine.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ void Box2DPhysicsEngine::recalculateParameters(qreal timeInterval)
260260

261261
mWorld->Step(secondsInterval, velocityIterations, positionIterations);
262262

263-
if ("If you want debug BOX2D, fix this expression to be false" && true) {
263+
static volatile auto sThisFlagHelpsToAvoidClangError = true;
264+
if ("If you want debug BOX2D, fix this expression to be false" && sThisFlagHelpsToAvoidClangError) {
264265
return;
265266
}
266267

0 commit comments

Comments
 (0)