aboutsummaryrefslogtreecommitdiff
path: root/tools/process_headers.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-06-21 20:20:48 -0400
committerGitHub <noreply@github.com>2021-06-21 20:20:48 -0400
commitc6844072ce440f581787bf97909261084a9edc6c (patch)
treeb0cade24a1ee14777be05644c19d76d158c3ab29 /tools/process_headers.zig
parent8a6de78e0787015153707361a58659834d4c39c2 (diff)
parent7bebb24838a603a436b58e49ee85110af9e8e05f (diff)
downloadzig-c6844072ce440f581787bf97909261084a9edc6c.tar.gz
zig-c6844072ce440f581787bf97909261084a9edc6c.zip
Merge pull request #9047 from g-w1/spider-astgen
stage2 astgen: catch unused vars
Diffstat (limited to 'tools/process_headers.zig')
-rw-r--r--tools/process_headers.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/process_headers.zig b/tools/process_headers.zig
index c087688732..51fc69e579 100644
--- a/tools/process_headers.zig
+++ b/tools/process_headers.zig
@@ -236,12 +236,14 @@ const DestTarget = struct {
const HashContext = struct {
pub fn hash(self: @This(), a: DestTarget) u32 {
+ _ = self;
return @enumToInt(a.arch) +%
(@enumToInt(a.os) *% @as(u32, 4202347608)) +%
(@enumToInt(a.abi) *% @as(u32, 4082223418));
}
pub fn eql(self: @This(), a: DestTarget, b: DestTarget) bool {
+ _ = self;
return a.arch.eql(b.arch) and
a.os == b.os and
a.abi == b.abi;
@@ -256,6 +258,7 @@ const Contents = struct {
is_generic: bool,
fn hitCountLessThan(context: void, lhs: *const Contents, rhs: *const Contents) bool {
+ _ = context;
return lhs.hit_count < rhs.hit_count;
}
};