* [PATCH] builtin-send-pack.c: avoid empty structure initialization
@ 2009-03-27 2:33 Brandon Casey
2009-03-27 2:37 ` Brandon Casey
0 siblings, 1 reply; 3+ messages in thread
From: Brandon Casey @ 2009-03-27 2:33 UTC (permalink / raw)
To: gitster; +Cc: git
The IRIX6.5 MIPSpro Compiler doesn't like it.
---
builtin-send-pack.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] builtin-send-pack.c: avoid empty structure initialization
2009-03-27 2:33 [PATCH] builtin-send-pack.c: avoid empty structure initialization Brandon Casey
@ 2009-03-27 2:37 ` Brandon Casey
2009-03-27 4:02 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Brandon Casey @ 2009-03-27 2:37 UTC (permalink / raw)
To: gitster; +Cc: git
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(-)
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] builtin-send-pack.c: avoid empty structure initialization
2009-03-27 2:37 ` Brandon Casey
@ 2009-03-27 4:02 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2009-03-27 4:02 UTC (permalink / raw)
To: Brandon Casey; +Cc: git
Brandon Casey <casey@nrlssc.navy.mil> writes:
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-27 4:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-27 2:33 [PATCH] builtin-send-pack.c: avoid empty structure initialization Brandon Casey
2009-03-27 2:37 ` Brandon Casey
2009-03-27 4:02 ` Junio C Hamano
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 NNTP newsgroup(s).