From e49e64e7745c0ef4ffeac9a379cfa26d422fdb6e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 26 Apr 2011 23:42:01 -0400 Subject: [PATCH] Fix clang warning when resetting connection This was a regression on 2.0.10-stable: clang was warning about values that were unused (because event_debug wasn't using them unless USE_DEBUG was defined). Found by Sebastian Hahn. --- http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http.c b/http.c index df54be7e..06fe6148 100644 --- a/http.c +++ b/http.c @@ -1023,6 +1023,7 @@ evhttp_read_cb(struct bufferevent *bufev, void *arg) break; case EVCON_IDLE: { +#ifdef USE_DEBUG struct evbuffer *input; size_t total_len; @@ -1031,6 +1032,7 @@ evhttp_read_cb(struct bufferevent *bufev, void *arg) event_debug(("%s: read %d bytes in EVCON_IDLE state," " resetting connection", __func__, (int)total_len)); +#endif evhttp_connection_reset(evcon); }