From 641ecc260f43ffb2398acb80cbd141535dbbb03d Mon Sep 17 00:00:00 2001 From: Jacob G-W Date: Wed, 9 Jun 2021 21:35:42 -0400 Subject: std, src, doc, test: remove unused variables --- lib/std/pdb.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/std/pdb.zig') diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig index d91323768a..d6d28084d9 100644 --- a/lib/std/pdb.zig +++ b/lib/std/pdb.zig @@ -590,11 +590,11 @@ pub const Pdb = struct { var sect_cont_offset: usize = 0; if (section_contrib_size != 0) { - // the version - _ = reader.readEnum(SectionContrSubstreamVersion, .Little) catch |err| switch (err) { + const version = reader.readEnum(SectionContrSubstreamVersion, .Little) catch |err| switch (err) { error.InvalidValue => return error.InvalidDebugInfo, else => |e| return e, }; + _ = version; sect_cont_offset += @sizeOf(u32); } while (sect_cont_offset != section_contrib_size) { @@ -617,8 +617,8 @@ pub const Pdb = struct { // Parse the InfoStreamHeader. const version = try reader.readIntLittle(u32); - // The signature - _ = try reader.readIntLittle(u32); + const signature = try reader.readIntLittle(u32); + _ = signature; const age = try reader.readIntLittle(u32); const guid = try reader.readBytesNoEof(16); -- cgit v1.2.3