From 33c9a6da4c599a47dbdaff6823f2c9befc8e3d30 Mon Sep 17 00:00:00 2001 From: Jaco Kroon Date: Mon, 6 Apr 2020 18:29:25 +0200 Subject: [PATCH] vhost: Fix unused var warning with some SOCKS5 after 6bb116b8d8d59139416ceb8cb3ca522b3fa9adb3 the variable p could be declared without being used. https://bugs.gentoo.org/716386 refers. This just fixes that. --- lib/core-net/vhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core-net/vhost.c b/lib/core-net/vhost.c index ecd428430..3bdd7abf9 100644 --- a/lib/core-net/vhost.c +++ b/lib/core-net/vhost.c @@ -477,8 +477,8 @@ lws_create_vhost(struct lws_context *context, struct lws_protocols *lwsp; int m, f = !info->pvo, fx = 0, abs_pcol_count = 0, sec_pcol_count = 0; char buf[96]; -#if ((defined(LWS_CLIENT_HTTP_PROXYING) && defined(LWS_WITH_CLIENT)) \ - || defined(LWS_WITH_SOCKS5)) && defined(LWS_HAVE_GETENV) +#if defined(LWS_CLIENT_HTTP_PROXYING) && defined(LWS_WITH_CLIENT) \ + && defined(LWS_HAVE_GETENV) char *p; #endif #if defined(LWS_WITH_SYS_ASYNC_DNS)