mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
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.
This commit is contained in:
parent
ea0d019b71
commit
e49e64e774
2
http.c
2
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user