diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 68b77de645..fa87e5898c 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -681,6 +681,7 @@ fn readCoffDebugInfo(allocator: *mem.Allocator, coff_file: File) !ModuleDebugInf try di.coff.loadSections(); if (di.coff.getSection(".debug_info")) |sec| { // This coff file has embedded DWARF debug info + _ = sec; // TODO: free the section data slices const debug_info_data = di.coff.getSectionData(".debug_info", allocator) catch null; const debug_abbrev_data = di.coff.getSectionData(".debug_abbrev", allocator) catch null; diff --git a/src/Sema.zig b/src/Sema.zig index d5ac4beca1..1e1aadcc76 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -5809,7 +5809,6 @@ fn zirIntToPtr(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) InnerErro return sema.mod.fail(&block.base, type_src, "expected pointer, found '{}'", .{type_res}); const ptr_align = type_res.ptrAlignment(sema.mod.getTarget()); - const uncasted_operand = try sema.resolveInst(extra.rhs); if (try sema.resolveDefinedValue(block, operand_src, operand_coerced)) |val| { const addr = val.toUnsignedInt(); if (!type_res.isAllowzeroPtr() and addr == 0)