Revert "Replace zero-length array decls with []."
This reverts 6c5f9baa3b 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>
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user