aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Brooksby2024-11-27 13:22:01 +0000
committerRichard Brooksby2024-11-27 13:25:08 +0000
commitda6081e61f0548b3395b76cb3c4e771721764d01 (patch)
tree842e4ddb845e16aea99f319fe5408d452ff36663
parentdc6809e42ead03799e383243786a829161cc59dc (diff)
parent0fd43c6f380511082346fe51b989f90dabd54ff5 (diff)
downloademacs-da6081e61f0548b3395b76cb3c4e771721764d01.tar.gz
emacs-da6081e61f0548b3395b76cb3c4e771721764d01.zip
Merging branch/2024-11-26/fix-macos-latest-warnings for github pull request <https://github.com/ravenbrook/mps/pull/298>
GitHub-reference: https://github.com/Ravenbrook/mps/issues/298
-rw-r--r--mps/code/trans.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/mps/code/trans.c b/mps/code/trans.c
index 7e0f9ec196b..3c7f83883e8 100644
--- a/mps/code/trans.c
+++ b/mps/code/trans.c
@@ -151,7 +151,6 @@ Res TransformAddOldNew(Transform transform,
151{ 151{
152 Res res; 152 Res res;
153 Index i; 153 Index i;
154 Count added = 0;
155 Arena arena; 154 Arena arena;
156 155
157 AVERT(Transform, transform); 156 AVERT(Transform, transform);
@@ -164,8 +163,8 @@ Res TransformAddOldNew(Transform transform,
164 lists (old_list, new_list), using ArenaRead. Insisting on 163 lists (old_list, new_list), using ArenaRead. Insisting on
165 parking keeps things simple. */ 164 parking keeps things simple. */
166 arena = transform->arena; 165 arena = transform->arena;
167 AVER(ArenaGlobals(arena)->clamped); 166 AVER(ArenaGlobals(arena)->clamped); /* .assume.parked */
168 AVER(arena->busyTraces == TraceSetEMPTY); 167 AVER(arena->busyTraces == TraceSetEMPTY); /* .assume.parked */
169 168
170 res = TableGrow(transform->oldToNew, count); 169 res = TableGrow(transform->oldToNew, count);
171 if (res != ResOK) 170 if (res != ResOK)
@@ -190,8 +189,6 @@ Res TransformAddOldNew(Transform transform,
190 AVER(res != ResFAIL); /* It's a static error to add the same old twice. */ 189 AVER(res != ResFAIL); /* It's a static error to add the same old twice. */
191 if (res != ResOK) 190 if (res != ResOK)
192 return res; 191 return res;
193
194 ++added;
195 } 192 }
196 193
197 AVERT(Transform, transform); 194 AVERT(Transform, transform);