authorgravatar for BarabasGitHub@users.noreply.github.comBas van den Berg <BarabasGitHub@users.noreply.github.com> 2020-09-08 12:16:03+02:00
committergravatar for BarabasGitHub@users.noreply.github.comBas van den Berg <BarabasGitHub@users.noreply.github.com> 2020-09-08 12:16:03+02:00
log857613fb65d2ba2d24d9f26d8b3fefd73f8abda6
tree8ab33145b6cfe3a37a8b567094b8251382b5aa99
parent9094d6cbb83571119e4145e69223f9bd8ddcc48b

add unreachable


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/os.zig+2
......@@ -2761,6 +2761,7 @@ pub fn bind(sock: socket_t, addr: *const sockaddr, len: socklen_t) BindError!voi
27612761 // TODO: handle errors
27622762 else => |err| return windows.unexpectedWSAError(err),
27632763 }
2764 unreachable;
27642765 }
27652766 return;
27662767 } else {
......@@ -2782,6 +2783,7 @@ pub fn bind(sock: socket_t, addr: *const sockaddr, len: socklen_t) BindError!voi
27822783 else => |err| return unexpectedErrno(err),
27832784 }
27842785 }
2786 unreachable;
27852787}
27862788
27872789const ListenError = error{