From 0ce77ac204e0d8f998dd20e0dc2a2c840c1dfc61 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 17 Sep 2021 11:56:25 +0200 Subject: [PATCH] BUILD: sockpair: do not set unused flag Ilya reports in GH #1392 that clang 13 complains about a flag being added to the "flags" parameter without being used later. That's generic code that was shared from TCP but we can indeed drop this flag since it's used for TFO which we don't have in socketpairs. --- src/proto_sockpair.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/proto_sockpair.c b/src/proto_sockpair.c index 0cb9ab1e9b..0357552baa 100644 --- a/src/proto_sockpair.c +++ b/src/proto_sockpair.c @@ -331,10 +331,6 @@ static int sockpair_connect_server(struct connection *conn, int flags) return SF_ERR_INTERNAL; } - /* if a send_proxy is there, there are data */ - if (conn->send_proxy_ofs) - flags |= CONNECT_HAS_DATA; - if (global.tune.server_sndbuf) setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &global.tune.server_sndbuf, sizeof(global.tune.server_sndbuf)); -- 2.47.3