From: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>
To: git@vger.kernel.org
Cc: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>
Subject: [PATCH] unpack-objects: fix build warning with gcc 4.8.5
Date: Fri, 29 Jul 2022 16:06:44 +0700 [thread overview]
Message-ID: <dfb9273964a6226472316bedf188de63169fb45c.1659084815.git.congdanhqx@gmail.com> (raw)
git_zstream's first field is a struct (z_stream), it must be
initialised with {0}.
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
Cc: Han Xin <hanxin.hx@alibaba-inc.com>
Fix for hx/unpack-streaming (merged to next)
Please feel free to squash into it.
builtin/unpack-objects.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c
index 43789b8ef2..4b16f1592b 100644
--- a/builtin/unpack-objects.c
+++ b/builtin/unpack-objects.c
@@ -385,7 +385,7 @@ static const void *feed_input_zstream(struct input_stream *in_stream,
static void stream_blob(unsigned long size, unsigned nr)
{
- git_zstream zstream = { 0 };
+ git_zstream zstream = { { 0 } };
struct input_zstream_data data = { 0 };
struct input_stream in_stream = {
.read = feed_input_zstream,
--
2.37.1.560.gdfb9273964
reply other threads:[~2022-07-29 9:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dfb9273964a6226472316bedf188de63169fb45c.1659084815.git.congdanhqx@gmail.com \
--to=congdanhqx@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).