mps
mps copied to clipboard
macOS build fails with Xcode 15.2
Building using xcodebuild fails for me because the variable added in TransformAddOldNew() is unused (it really is), and -Werror,... is set. The following makes mps build successfully:
modified code/trans.c
@@ -151,7 +151,6 @@ Res TransformAddOldNew(Transform transform,
{
Res res;
Index i;
- Count added = 0;
Arena arena;
AVERT(Transform, transform);
@@ -190,8 +189,6 @@ Res TransformAddOldNew(Transform transform,
AVER(res != ResFAIL); /* It's a static error to add the same old twice. */
if (res != ResOK)
return res;
-
- ++added;
}
AVERT(Transform, transform);
Thanks for bringing this to our attention - it seems "added" is not used in the code but we'll double check that removing it is the correct fix
thejayps @.***> writes:
Thanks for bringing this to our attention - it seems "added" is not used in the code but we'll double check that removing it is the correct fix
Thanks!
modified code/trans.c @@ -151,7 +151,6 @@ Res TransformAddOldNew(Transform transform, { Res res; Index i; - Count added = 0; Arena arena; AVERT(Transform, transform); @@ -190,8 +189,6 @@ Res TransformAddOldNew(Transform transform, AVER(res != ResFAIL); /* It's a static error to add the same old twice. */ if (res != ResOK) return res; - - ++added; } AVERT(Transform, transform);
For what it's worth, the above fix works here. Built on macOS 14.5 with Xcode 15.4.