Skip to content

Commit

Permalink
Don't use empty structure initializers.
Browse files Browse the repository at this point in the history
Empty initializers for structures are not allowed in ANSI C99. This patch
removes such an initializer from `builtin-read-tree.c'. Since the struct was
static (and is therefore implicitely initialized to zero anyway) it wasn't
actually needed.

Signed-off-by: Florian Forster <octo@verplant.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Florian Forster authored and Junio C Hamano committed Jun 19, 2006
1 parent 04f0860 commit 571ea60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin-read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ static int merge_size = 0;

static struct object_list *trees = NULL;

static struct cache_entry df_conflict_entry = {
};
static struct cache_entry df_conflict_entry;

struct tree_entry_list {
struct tree_entry_list *next;
Expand Down

0 comments on commit 571ea60

Please sign in to comment.