threads / patch / 18582

patchbuiltin-send-pack.c: avoid empty structure initialization

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

## tl;dr

3 messages between Mar 27, 2009 and Mar 27, 2009. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Brandon Casey· Mar 27, 2009, 02:33 UTC · lore
The IRIX6.5 MIPSpro Compiler doesn't like it.
---
 builtin-send-pack.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Show changes to builtin-send-pack.c +1 −2
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)
 {
-- 
1.6.2.16.geb16e
Brandon Casey· Mar 27, 2009, 02:37 UTC · re: Brandon Casey · lore
The IRIX6.5 MIPSpro Compiler doesn't like it.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
Signed version, sorry.
 builtin-send-pack.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Show changes to builtin-send-pack.c +1 −2
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)
 {
-- 
1.6.2.16.geb16e
Junio C Hamano· Mar 27, 2009, 04:02 UTC · re: Brandon Casey · lore

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

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.

← back to recent threads