mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
add unreachable
This commit is contained in:
parent
9094d6cbb8
commit
857613fb65
@ -2761,6 +2761,7 @@ pub fn bind(sock: socket_t, addr: *const sockaddr, len: socklen_t) BindError!voi
|
||||
// TODO: handle errors
|
||||
else => |err| return windows.unexpectedWSAError(err),
|
||||
}
|
||||
unreachable;
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
@ -2782,6 +2783,7 @@ pub fn bind(sock: socket_t, addr: *const sockaddr, len: socklen_t) BindError!voi
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
unreachable;
|
||||
}
|
||||
|
||||
const ListenError = error{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user