From: Murdoch@cl.cam.ac.uk Date: Wed, 30 Nov 2011 20:14:46 +0000 (+0000) Subject: Only define set_buffer_lengths_to_zero if bufferevents are enabled X-Git-Tag: tor-0.2.3.9-alpha~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0d3c6a8783a0ad8178d8fe396ad75bb0355f5f7;p=thirdparty%2Ftor.git Only define set_buffer_lengths_to_zero if bufferevents are enabled Otherwise, on Windows, gcc will warn about the function being unused --- diff --git a/src/or/main.c b/src/or/main.c index d3eb721d8a..3cf98565c8 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -196,7 +196,7 @@ free_old_inbuf(connection_t *conn) } #endif -#ifdef MS_WINDOWS +#if defined(MS_WINDOWS) && defined(USE_BUFFEREVENTS) /** Remove the kernel-space send and receive buffers for s. For use * with IOCP only. */ static int