From 1fdc712e661f583b5e3925f1ab10cff9162fb315 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Mon, 24 Sep 2018 11:19:54 +0500 Subject: [PATCH] src/Cedar/Client.c: silence coverity regarding dead code --- src/Cedar/Client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c index 6fa0a07f..ddc391d6 100644 --- a/src/Cedar/Client.c +++ b/src/Cedar/Client.c @@ -1869,6 +1869,7 @@ BEGIN_LISTENER: // If the port cannot be opened if (cn_next_allow <= Tick64()) { +#ifdef OS_WIN32 if (cursor_changed) { // It can be judged to have the rights to open the port @@ -1876,6 +1877,7 @@ BEGIN_LISTENER: // So, take over the port which is owned by other process forcibly CncReleaseSocket(); } +#endif // OS_WIN32 if (cn_listener->Halt) {