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.
Subject Author Posted

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

itpp2012 January 14, 2014 04:26PM

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

Valentin V. Bartenev January 14, 2014 04:32PM

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

itpp2012 January 14, 2014 04:33PM

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

Valentin V. Bartenev January 14, 2014 04:50PM

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

itpp2012 January 14, 2014 05:36PM

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

Valentin V. Bartenev January 14, 2014 06:06PM

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

itpp2012 January 15, 2014 03:53AM

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

Valentin V. Bartenev January 15, 2014 05:00AM

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

itpp2012 January 15, 2014 05:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready