aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/switch.zig
diff options
context:
space:
mode:
authorJacob G-W <jacoblevgw@gmail.com>2021-06-09 21:35:42 -0400
committerAndrew Kelley <andrew@ziglang.org>2021-06-21 17:03:03 -0700
commit641ecc260f43ffb2398acb80cbd141535dbbb03d (patch)
tree87455d3b460f517ad35bcda2b3a2e38599dd4aa1 /test/behavior/switch.zig
parentd34a1ccb0ea75ba31f374b8b2d34e18326b147b1 (diff)
downloadzig-641ecc260f43ffb2398acb80cbd141535dbbb03d.tar.gz
zig-641ecc260f43ffb2398acb80cbd141535dbbb03d.zip
std, src, doc, test: remove unused variables
Diffstat (limited to 'test/behavior/switch.zig')
-rw-r--r--test/behavior/switch.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/behavior/switch.zig b/test/behavior/switch.zig
index 9d05e3edea..ad32d2edaf 100644
--- a/test/behavior/switch.zig
+++ b/test/behavior/switch.zig
@@ -103,6 +103,7 @@ fn switchProngWithVarFn(a: SwitchProngWithVarEnum) !void {
},
SwitchProngWithVarEnum.Meh => |x| {
const v: void = x;
+ _ = v;
},
}
}
@@ -454,6 +455,7 @@ test "switch variable for range and multiple prongs" {
}
}
};
+ _ = S;
}
var state: u32 = 0;