git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] builtin-send-pack.c: avoid empty structure initialization

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 27, 2009, 04:02 UTC
Message-ID
<7vfxgzipe7.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<5dTED0fgBNPRxaQcq2Yx362_Ykx8_d294JWsQ989AjNLfL5kjzWRBnuVa1D9jLmvQzvhAD5NPfY@cipher.nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
Show 18 quoted lines
> The IRIX6.5 MIPSpro Compiler doesn't like it.
>
> Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
> ...
> diff --git a/builtin-send-pack.c b/builtin-send-pack.c
> index 91c3651..d5a1c48 100644
> --- a/builtin-send-pack.c
> +++ b/builtin-send-pack.c
> @@ -10,8 +10,7 @@ static const char send_pack_usage[] =
>  "git send-pack [--all | --mirror] [--dry-run] [--force] [--receive-pack=<git-receive-pack>] [--verbose] [--thin] [<host>:]<directory> [<ref>...]\n"
>  "  --all and explicit <ref> specification are mutually exclusive.";
>  
> -static struct send_pack_args args = {
> -};
> +static struct send_pack_args args;
>  
>  static int feed_object(const unsigned char *sha1, int fd, int negative)
>  {
Thanks.
Previous: Brandon Casey
Message 3 of 3 in “builtin-send-pack.c: avoid empty structure initialization”
  1. builtin-send-pack.c: avoid empty structure initializationBrandon Casey, Mar 27, 2009
  2. builtin-send-pack.c: avoid empty structure initializationBrandon Casey, Mar 27, 2009
  3. Junio C HamanoMar 27, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.