aboutsummaryrefslogtreecommitdiff
path: root/tools/process_headers.zig
diff options
context:
space:
mode:
authorJacob G-W <jacoblevgw@gmail.com>2021-06-19 21:10:22 -0400
committerAndrew Kelley <andrew@ziglang.org>2021-06-21 17:03:03 -0700
commit9fffffb07b081858db0c2102a0680aa166b48263 (patch)
tree36caed31c5b2aaa8e08bb8e6e90e9b2c30910ff3 /tools/process_headers.zig
parentb83b3883ba0b5e965f8f7f1298c77c6d766741af (diff)
downloadzig-9fffffb07b081858db0c2102a0680aa166b48263.tar.gz
zig-9fffffb07b081858db0c2102a0680aa166b48263.zip
fix code broken from previous commit
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;
}
};