Commit a589f22a9441523327e4c987c5b5f5f857472067

Carlos Martín Nieto 2015-11-30T20:41:54

Merge pull request #3525 from pks-t/pks/fix-nested-struct-warning Compiler warning fixes

diff --git a/src/object.c b/src/object.c
index 1073559..b0a8199 100644
--- a/src/object.c
+++ b/src/object.c
@@ -14,8 +14,6 @@
 #include "blob.h"
 #include "tag.h"
 
-static const int OBJECT_BASE_SIZE = 4096;
-
 typedef struct {
 	const char	*str;	/* type name string */
 	size_t		size;	/* size in bytes of the object structure */
diff --git a/tests/index/racy.c b/tests/index/racy.c
index 862c5ab..a24d47a 100644
--- a/tests/index/racy.c
+++ b/tests/index/racy.c
@@ -178,7 +178,7 @@ static void setup_uptodate_files(void)
 {
 	git_buf path = GIT_BUF_INIT;
 	git_index *index;
-	git_index_entry new_entry = {0};
+	git_index_entry new_entry = {{0}};
 
 	cl_git_pass(git_repository_index(&index, g_repo));