diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-11-30 22:41:54 +0300 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-11-30 22:41:54 +0300 |
commit | a589f22a9441523327e4c987c5b5f5f857472067 (patch) | |
tree | 88afbf5d020af6a7827214483846b31f4921d6c0 | |
parent | a27f31d8f54635e349d5c64df4394a3f51752a5a (diff) | |
parent | bbd2fa4e70d3b1193c447db81ff01cf54661edfa (diff) |
Merge pull request #3525 from pks-t/pks/fix-nested-struct-warning
Compiler warning fixes
-rw-r--r-- | src/object.c | 2 | ||||
-rw-r--r-- | tests/index/racy.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/object.c b/src/object.c index 1073559fd..b0a8199bc 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 862c5ab7e..a24d47a10 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)); |