mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -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;
|
break;
|
||||||
case EVCON_IDLE:
|
case EVCON_IDLE:
|
||||||
{
|
{
|
||||||
|
#ifdef USE_DEBUG
|
||||||
struct evbuffer *input;
|
struct evbuffer *input;
|
||||||
size_t total_len;
|
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,"
|
event_debug(("%s: read %d bytes in EVCON_IDLE state,"
|
||||||
" resetting connection",
|
" resetting connection",
|
||||||
__func__, (int)total_len));
|
__func__, (int)total_len));
|
||||||
|
#endif
|
||||||
|
|
||||||
evhttp_connection_reset(evcon);
|
evhttp_connection_reset(evcon);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user