From 418f71ec0f6c8523cf7e8c8abe14b429d68e9bba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Feb 2018 23:17:36 +0100 Subject: [PATCH] net/Init: work around -Werror=unused-variable --- src/net/Init.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/Init.hxx b/src/net/Init.hxx index 9e4581438..5163b9351 100644 --- a/src/net/Init.hxx +++ b/src/net/Init.hxx @@ -40,6 +40,9 @@ public: ~ScopeNetInit() noexcept { WSACleanup(); } +#else +public: + ScopeNetInit() {} #endif };