From 279f6116aa7927532b8fab0b09a17709bc83c651 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 4 May 2015 13:30:53 +0200 Subject: [PATCH] src: fix -Wmissing-field-initializers warning 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: https://github.com/iojs/io.js/pull/1606 Reviewed-By: Fedor Indutny --- src/node_http_parser.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index f71302d3130a16..6c5d76ecf6cc95 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -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 };