Skip to content

Commit

Permalink
src: fix -Wmissing-field-initializers warning
Browse files Browse the repository at this point in the history
Fix the following (non-serious) compiler warning:

    ../src/node_http_parser.cc:558:1: warning: missing initializer for
    member 'http_parser_settings::on_chunk_header'
    [-Wmissing-field-initializers]
    };
    ^
    ../src/node_http_parser.cc:558:1: warning: missing initializer for
    member 'http_parser_settings::on_chunk_complete'
    [-Wmissing-field-initializers]

Introduced in commit b3a7da1 ("deps: update http_parser to 2.5.0").

PR-URL: nodejs#1606
Reviewed-By: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
bnoordhuis authored and Fishrock123 committed May 19, 2015
1 parent dedddb7 commit 6568dc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node_http_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ const struct http_parser_settings Parser::settings = {
Parser::on_header_value,
Parser::on_headers_complete,
Parser::on_body,
Parser::on_message_complete
Parser::on_message_complete,
nullptr, // on_chunk_header
nullptr // on_chunk_complete
};


Expand Down

0 comments on commit 6568dc9

Please sign in to comment.