Mercurial > hg > nginx
comparison src/http/ngx_http_spdy_filter_module.c @ 5516:439d05a037a3
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 15 Jan 2014 01:44:52 +0400 |
parents | e5fb14e85040 |
children | 9d1479234f3c |
comparison
equal
deleted
inserted
replaced
5515:e5fb14e85040 | 5516:439d05a037a3 |
---|---|
663 | 663 |
664 } else { | 664 } else { |
665 offset = 0; | 665 offset = 0; |
666 } | 666 } |
667 | 667 |
668 #if (NGX_SUPPRESS_WARN) | |
669 cl = NULL; | |
670 #endif | |
671 | |
668 slcf = ngx_http_get_module_loc_conf(r, ngx_http_spdy_module); | 672 slcf = ngx_http_get_module_loc_conf(r, ngx_http_spdy_module); |
669 | 673 |
670 frame_size = (limit && limit <= (off_t) slcf->chunk_size) | 674 frame_size = (limit && limit <= (off_t) slcf->chunk_size) |
671 ? (size_t) limit | 675 ? (size_t) limit |
672 : slcf->chunk_size; | 676 : slcf->chunk_size; |