authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-15 18:18:12+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-15 18:22:13+00:00
log64f1c27332839f5dba9463aa2be3644da0cd5008
tree9bbf53f2a7d9afc8fab92abee4ed157e6aef489f
parent5d215838a79a24c21842fbc76fd77aca4c28b162
signaturelock-open Commit is signed but in an unrecognized format.

compiler,std: fix never-mutated local variables


5 files changed, 6 insertions(+), 6 deletions(-)

lib/std/Io/Threaded.zig+1-1
......@@ -16191,7 +16191,7 @@ fn windowsCreateProcessPathExt(
1619116191 // we iterate the matches and take note of any that are either the unappended version,
1619216192 // or a version with a supported PATHEXT appended. We then try calling CreateProcessW
1619316193 // with the found versions in the appropriate order.
16194 var dir = dir: {
16194 const dir = dir: {
1619516195 // needs to be null-terminated
1619616196 try dir_buf.append(arena, 0);
1619716197 defer dir_buf.shrinkRetainingCapacity(dir_path_len);
lib/std/Io/Uring.zig+1-1
......@@ -2427,7 +2427,7 @@ fn batchDrainReady(batch: *Io.Batch) Io.Timeout.Error!void {
24272427 break :cond true;
24282428 },
24292429 }) {
2430 var operation_userdata: *Io.Operation.Storage.Pending.Userdata =
2430 const operation_userdata: *Io.Operation.Storage.Pending.Userdata =
24312431 @ptrFromInt(next & ~@as(usize, 0b11));
24322432 next = operation_userdata[0];
24332433 const completion: Completion = .{
lib/std/fs/path.zig+2-2
......@@ -814,8 +814,8 @@ fn compareDiskDesignators(comptime T: type, kind: DiskDesignatorKind, p1: []cons
814814 return eql(drive_letter1, drive_letter2);
815815 },
816816 .unc => {
817 var unc1 = parseUNC(T, p1);
818 var unc2 = parseUNC(T, p2);
817 const unc1 = parseUNC(T, p1);
818 const unc2 = parseUNC(T, p2);
819819
820820 return eql(unc1.server, unc2.server) and
821821 eql(unc1.share, unc2.share);
src/codegen/wasm/CodeGen.zig+1-1
......@@ -3477,7 +3477,7 @@ fn intSubOverflow(cg: *CodeGen, int_ty: IntType, lhs: WValue, rhs: WValue) Inner
34773477}
34783478
34793479fn intMulOverflow(cg: *CodeGen, int_ty: IntType, lhs: WValue, rhs: WValue) InnerError!OverflowResult {
3480 var overflow_bit = try cg.allocLocal(Type.u32);
3480 const overflow_bit = try cg.allocLocal(Type.u32);
34813481 try cg.addImm32(0);
34823482 try cg.addLocal(.local_set, overflow_bit.local.value);
34833483
src/main.zig+1-1
......@@ -4648,7 +4648,7 @@ fn runOrTestHotSwap(
46484648 try argv.appendSlice(all_args[i..]);
46494649 }
46504650
4651 var child = try std.process.spawn(io, .{
4651 const child = try std.process.spawn(io, .{
46524652 .argv = argv.items,
46534653 .stdin = .inherit,
46544654 .stdout = .inherit,