From: Junio C Hamano <gitster@pobox.com>
To: Thomas Gummerer <t.gummerer@gmail.com>
Cc: git@vger.kernel.org, Jeff Hostetler <jeffhost@microsoft.com>
Subject: Re: [PATCH] oidset: don't return value from oidset_init
Date: Mon, 08 Jan 2018 15:26:56 -0800 [thread overview]
Message-ID: <xmqqincc6if3.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <20180107230404.23289-1-t.gummerer@gmail.com> (Thomas Gummerer's message of "Sun, 7 Jan 2018 23:04:04 +0000")
Thomas Gummerer <t.gummerer@gmail.com> writes:
> c3a9ad3117 ("oidset: add iterator methods to oidset", 2017-11-21)
> introduced a 'oidset_init()' function in oidset.h, which has void as
> return type, but returns an expression.
> ...
> diff --git a/oidset.h b/oidset.h
> index 783abceccd..40ec5f87fe 100644
> --- a/oidset.h
> +++ b/oidset.h
> @@ -27,7 +27,7 @@ struct oidset {
>
> static inline void oidset_init(struct oidset *set, size_t initial_size)
> {
> - return oidmap_init(&set->map, initial_size);
> + oidmap_init(&set->map, initial_size);
> }
Makes sense. Perhaps "inline" hids this from error-checking
compilers, I wonder?
next prev parent reply other threads:[~2018-01-08 23:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-07 23:04 [PATCH] oidset: don't return value from oidset_init Thomas Gummerer
2018-01-08 23:26 ` Junio C Hamano [this message]
2018-01-09 7:33 ` Johannes Sixt
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=xmqqincc6if3.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jeffhost@microsoft.com \
--cc=t.gummerer@gmail.com \
/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).