diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-09-13 13:01:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-13 13:01:42 -0400 |
| commit | c25ce5bba0d00283ad4de9077dba5a8d5255b619 (patch) | |
| tree | cc4bdb8332acdde7b23bffacfc42bffaa6d35273 /lib/std/math.zig | |
| parent | be944870298e4694e8ccb3f8c65a0bd152e26dad (diff) | |
| parent | b2e94de3585e0a1242e3a5d6c8fd331da9f2d4f5 (diff) | |
| download | zig-c25ce5bba0d00283ad4de9077dba5a8d5255b619.tar.gz zig-c25ce5bba0d00283ad4de9077dba5a8d5255b619.zip | |
Merge pull request #12820 from ziglang/pointless-discard-error
introduce compile error for pointless discards
Diffstat (limited to 'lib/std/math.zig')
| -rw-r--r-- | lib/std/math.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig index d1c9326ae2..f519979349 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -171,7 +171,6 @@ pub fn approxEqRel(comptime T: type, x: T, y: T, tolerance: T) bool { } pub fn approxEq(comptime T: type, x: T, y: T, tolerance: T) bool { - _ = T; _ = x; _ = y; _ = tolerance; |
