aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-write-in-a-row.c
diff options
context:
space:
mode:
authorSantiago Gimeno <santiago.gimeno@gmail.com>2022-12-10 19:36:46 +0100
committerGitHub <noreply@github.com>2022-12-10 19:36:46 +0100
commitabf77a9eda3c83e74d8d0f60d77fe00cb888908b (patch)
tree7b5b0bc6ecc7db6f5b748813d72fa4b3825f9a81 /test/test-tcp-write-in-a-row.c
parent75d9411e803dea5363bfdc223f1f284b8cf3dec3 (diff)
downloadlibuv-abf77a9eda3c83e74d8d0f60d77fe00cb888908b.tar.gz
libuv-abf77a9eda3c83e74d8d0f60d77fe00cb888908b.zip
test: fix some unreachable code warnings (#3851)
Diffstat (limited to 'test/test-tcp-write-in-a-row.c')
-rw-r--r--test/test-tcp-write-in-a-row.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-tcp-write-in-a-row.c b/test/test-tcp-write-in-a-row.c
index f04d48fc..f50e5186 100644
--- a/test/test-tcp-write-in-a-row.c
+++ b/test/test-tcp-write-in-a-row.c
@@ -114,7 +114,7 @@ static void start_server(void) {
TEST_IMPL(tcp_write_in_a_row) {
#if defined(_WIN32)
RETURN_SKIP("tcp_write_in_a_row does not work on Windows");
-#endif
+#else
uv_connect_t connect_req;
struct sockaddr_in addr;
@@ -138,4 +138,5 @@ TEST_IMPL(tcp_write_in_a_row) {
MAKE_VALGRIND_HAPPY();
return 0;
+#endif
}