From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Tue, 26 Apr 2022 15:28:52 -0400 Subject: [PATCH 06/10] Style / comments cleanup --- src/fs-poll.c | 1 + src/unix/core.c | 1 + src/uv-common.c | 1 + src/win/process.c | 1 - src/win/winsock.c | 1 + 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fs-poll.c b/src/fs-poll.c index 5a39daed095502b2db34f23fcaf0ab04f31f96ff..1a7ca70d62c71f6eaef2b9985796cc46a6438869 100644 --- a/src/fs-poll.c +++ b/src/fs-poll.c @@ -34,6 +34,7 @@ #include #include + struct poll_ctx { uv_fs_poll_t* parent_handle; int busy_polling; diff --git a/src/unix/core.c b/src/unix/core.c index 268fc9652f437eb0d0cda2a9e0b06b9e91eb9742..f53adc156a7c454c492abaeac29d90be436785fc 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -575,6 +575,7 @@ int uv__accept(int sockfd) { return peerfd; } + #if defined(__APPLE__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension" diff --git a/src/uv-common.c b/src/uv-common.c index cd10b36b4a393e325ea03b93eb9897193ca9800b..bfcc3ef10f4fd7763221638947da6e02e7a17c33 100644 --- a/src/uv-common.c +++ b/src/uv-common.c @@ -799,6 +799,7 @@ void uv__fs_readdir_cleanup(uv_fs_t* req) { } } + #ifdef __clang__ # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wvarargs" diff --git a/src/win/process.c b/src/win/process.c index 2b1b46259959867482079962d0ea44246a42e7cb..18816d3b1e8c863f8ca74fe0104de1aecd0ae3fa 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -35,7 +35,6 @@ #include "handle-inl.h" #include "req-inl.h" - #define SIGKILL 9 diff --git a/src/win/winsock.c b/src/win/winsock.c index 7843e9f13321c32419cebaacde82d30f471e11d7..cda82bc33c2c6e3dbfa9d978b5b40476228452bd 100644 --- a/src/win/winsock.c +++ b/src/win/winsock.c @@ -25,6 +25,7 @@ #include "uv.h" #include "internal.h" + #pragma comment(lib, "Ws2_32.lib") /* Whether there are any non-IFS LSPs stacked on TCP */