Skip to content

Commit ca1cf84

Browse files
committed
try to fix compile error: variable 'len' set but not used #305
1 parent d177468 commit ca1cf84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/c/ngx_http_clojure_mem.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3115,19 +3115,25 @@ static jlong JNICALL jni_ngx_http_filter_continue_next(JNIEnv *env, jclass cls,
31153115

31163116
return rc;
31173117
} else {
3118+
#if (NGX_DEBUG)
31183119
int len = 0;
3120+
#endif
31193121
ngx_chain_t *ci = in;
31203122
int is_last = 0;
31213123
while (ci) {
31223124
if (ci->buf->last_buf) {
31233125
is_last = 1;
31243126
}
3127+
#if (NGX_DEBUG)
31253128
len += ngx_buf_size(ci->buf);
3129+
#endif
31263130
ci = ci->next;
31273131
}
31283132

3133+
#if (NGX_DEBUG)
31293134
ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
31303135
"jni_ngx_http_filter_continue_next, chain=%" PRIu64 ", size=%d, is_last=%d", chain, len, is_last);
3136+
#endif
31313137
rc = ngx_http_clojure_filter_continue_next_body_filter(r, in);
31323138

31333139
if (!is_last && old_in) {

0 commit comments

Comments
 (0)