Re: [PATCH v2 34/43] refs.c: make struct ref_transaction generic

2015-10-06 Thread David Turner
On Tue, 2015-10-06 at 10:43 -0700, Michael Blume wrote: > This triggers a lot of build warnings on my mac, basically in every > file that uses refs.h: > > CC archive.o > In file included from archive.c:2: > ./refs.h:635:16: warning: redefinition of typedef > 'ref_transaction_free_fn' is a C11

Re: [PATCH v2 34/43] refs.c: make struct ref_transaction generic

2015-10-06 Thread Michael Blume
This triggers a lot of build warnings on my mac, basically in every file that uses refs.h: CC archive.o In file included from archive.c:2: ./refs.h:635:16: warning: redefinition of typedef 'ref_transaction_free_fn' is a C11 feature [-Wtypedef-redefinition] typedef void (*ref_transaction_free_f

[PATCH v2 34/43] refs.c: make struct ref_transaction generic

2015-09-28 Thread David Turner
Alternate ref backends might need different data for transactions. Make struct ref_transaction an empty struct, and let backends define their own structs which extend it. Signed-off-by: David Turner --- refs-be-files.c | 24 +--- refs.h | 8 ++-- 2 files change