diff options
author | 2019-09-30 13:19:30 +0900 | |
---|---|---|
committer | 2019-09-30 13:19:30 +0900 | |
commit | d8ce144e11fef0606a531a5a9c34c2a8ca09e155 (patch) | |
tree | 92a8566d6fc7eabd26057b1ad6ae355098b9060f /pack-objects.h | |
parent | Merge branch 'sg/git-test-boolean' (diff) | |
parent | pack-objects: drop packlist index_pos optimization (diff) | |
download | tgif-d8ce144e11fef0606a531a5a9c34c2a8ca09e155.tar.xz |
Merge branch 'jk/misc-uninitialized-fixes'
Various fixes to codepaths gcc 9 had trouble following dataflow.
* jk/misc-uninitialized-fixes:
pack-objects: drop packlist index_pos optimization
test-read-cache: drop namelen variable
diff-delta: set size out-parameter to 0 for NULL delta
bulk-checkin: zero-initialize hashfile_checkpoint
pack-objects: use object_id in packlist_alloc()
git-am: handle missing "author" when parsing commit
Diffstat (limited to 'pack-objects.h')
-rw-r--r-- | pack-objects.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pack-objects.h b/pack-objects.h index 857d43850b..6fe6ae5ee8 100644 --- a/pack-objects.h +++ b/pack-objects.h @@ -183,12 +183,10 @@ static inline void packing_data_unlock(struct packing_data *pdata) } struct object_entry *packlist_alloc(struct packing_data *pdata, - const unsigned char *sha1, - uint32_t index_pos); + const struct object_id *oid); struct object_entry *packlist_find(struct packing_data *pdata, - const struct object_id *oid, - uint32_t *index_pos); + const struct object_id *oid); static inline uint32_t pack_name_hash(const char *name) { |