diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-29 21:41:03 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-29 21:41:03 +0200 |
commit | 2c04662d89eaa55cecb6effd743c17051d1458ec (patch) | |
tree | aa27bc3ebd317ed648b152ef92e00870d9b33414 /server-info.c | |
parent | Merge refs/heads/portable from http://www.cs.berkeley.edu/~ejr/gits/git.git (diff) | |
download | git-2c04662d89eaa55cecb6effd743c17051d1458ec.tar.xz git-2c04662d89eaa55cecb6effd743c17051d1458ec.zip |
Revert "Replace zero-length array decls with []."
This reverts 6c5f9baa3bc0d63e141e0afc23110205379905a4 commit, whose
change breaks gcc-2.95.
Not that I ignore portability to compilers that are properly C99, but
keeping compilation with GCC working is more important, at least for
now. We would probably end up declaring with "name[1]" and teach the
allocator to subtract one if we really aimed for portability, but that
is left for later rounds.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'server-info.c')
-rw-r--r-- | server-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server-info.c b/server-info.c index cb58eb607e..2b3aecab4a 100644 --- a/server-info.c +++ b/server-info.c @@ -70,7 +70,7 @@ static struct pack_info { int nr_alloc; int nr_heads; unsigned char (*head)[20]; - char dep[]; /* more */ + char dep[0]; /* more */ } **info; static int num_pack; static const char *objdir; |