Welcome! Log In Create A New Profile

Advanced

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

January 14, 2014 05:36PM
You missed 2,

Line +-683:
if (offset) {
cl = ngx_http_spdy_filter_get_shadow(stream, in->buf,
// offset, size);
(off_t) offset, (size_t) size);
if (cl == NULL) {
return NGX_CHAIN_ERROR;
}

and +-Line 760:
if (offset) {
// cl = ngx_http_spdy_filter_get_shadow(stream, in->buf, offset, size);
cl = ngx_http_spdy_filter_get_shadow(stream, in->buf, (off_t) offset, (size_t) size);
if (cl == NULL) {
return NGX_CHAIN_ERROR;
}


Additional warning +-line 684:
if (offset) {
cl = ngx_http_spdy_filter_get_shadow(stream, in->buf,
(off_t) offset, (size_t) size);
if (cl == NULL) {
return NGX_CHAIN_ERROR;
}

offset = 0;

src\http\ngx_http_spdy_filter_module.c(685): warning C4701: potentially uninitialized local variable 'cl' used

When I add +-line 629:
ngx_http_spdy_stream_t *stream;
ngx_http_spdy_loc_conf_t *slcf;
ngx_http_spdy_out_frame_t *frame;
+ cl = NULL;

The warning is gone.
SubjectAuthorPosted

src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

itpp2012January 14, 2014 04:26PM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

Valentin V. BartenevJanuary 14, 2014 04:32PM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

itpp2012January 14, 2014 04:33PM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

Valentin V. BartenevJanuary 14, 2014 04:50PM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

itpp2012January 14, 2014 05:36PM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

Valentin V. BartenevJanuary 14, 2014 06:06PM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

itpp2012January 15, 2014 03:53AM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

Valentin V. BartenevJanuary 15, 2014 05:00AM

Re: src/http/ngx_http_spdy_filter_module.c, latest changesets compiler warnings

itpp2012January 15, 2014 05:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 154 on December 17, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready