[master] 716810b Fix compilation if SO_{SND, RCV}TIMEO_WORKS is not defined
Federico G. Schwindt
fgsch at lodoss.net
Mon Aug 11 17:38:35 CEST 2014
commit 716810bb51a8517c304ec34543b3426ad247bcbb
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon Aug 11 16:14:12 2014 +0100
Fix compilation if SO_{SND,RCV}TIMEO_WORKS is not defined
Fixes #1567
diff --git a/bin/varnishd/cache/cache_acceptor.c b/bin/varnishd/cache/cache_acceptor.c
index bad4ed9..af86b2b 100644
--- a/bin/varnishd/cache/cache_acceptor.c
+++ b/bin/varnishd/cache/cache_acceptor.c
@@ -126,13 +126,13 @@ vca_tcp_opt_init(void)
{
int n;
int one = 1;
- // int zero = 0;
struct tcp_opt *to;
struct timeval tv;
int chg = 0;
-#ifdef HAVE_TCP_KEEP
int x;
-#endif
+
+ (void)tv;
+ (void)x;
for (n = 0; n < n_tcp_opts; n++) {
to = &tcp_opts[n];
More information about the varnish-commit
mailing list