diff options
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r-- | src/http/ngx_http_parse.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index fa037ddff..07da10d33 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -392,6 +392,10 @@ int ngx_http_parse_request_line(ngx_http_request_t *r) return NGX_HTTP_PARSE_INVALID_REQUEST; } break; + + /* suppress warning */ + case sw_done: + break; } } @@ -595,6 +599,11 @@ int ngx_http_parse_header_line(ngx_http_request_t *r, ngx_hunk_t *h) return NGX_HTTP_PARSE_INVALID_HEADER; } break; + + /* suppress warning */ + case sw_done: + case sw_header_done: + break; } } |