# HG changeset patch # User Valentin Bartenev # Date 1389735892 -14400 # Node ID 439d05a037a344ae8d38b162a98391f92321d03b # Parent e5fb14e850408b2250f81751b69d2f735bbe8edc SPDY: fixed build, broken by b7ee1bae0ffa. False positive warning about the "cl" variable may be uninitialized in the ngx_http_spdy_filter_get_data_frame() call was suppressed. It is always initialized either in the "while" cycle or in the following "if" condition since frame_size cannot be zero. diff --git a/src/http/ngx_http_spdy_filter_module.c b/src/http/ngx_http_spdy_filter_module.c --- a/src/http/ngx_http_spdy_filter_module.c +++ b/src/http/ngx_http_spdy_filter_module.c @@ -665,6 +665,10 @@ ngx_http_spdy_send_chain(ngx_connection_ offset = 0; } +#if (NGX_SUPPRESS_WARN) + cl = NULL; +#endif + slcf = ngx_http_get_module_loc_conf(r, ngx_http_spdy_module); frame_size = (limit && limit <= (off_t) slcf->chunk_size)