Skip to content

Commit cdcd771

Browse files
committed
Document unreachability
1 parent e60baae commit cdcd771

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc-bottom-half/sources/tcp_sockopt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ int __wasilibc_tcp_setsockopt(void *data, int level, int optname,
413413
errno = ENOPROTOOPT;
414414
return -1;
415415
}
416+
417+
// should not be reachable, all cases above should return
418+
abort();
416419
}
417420

418421
#endif // not(__wasip1__)

0 commit comments

Comments
 (0)