Skip to content

Commit fe07ef8

Browse files
committed
packbuilder: use git__noop on non-threaded systems
Our git_packbuilder__cache_lock function returns a value; use git__noop.
1 parent 8413c0f commit fe07ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct walk_object {
5050
#ifdef GIT_THREADS
5151
# define GIT_PACKBUILDER__MUTEX_OP(pb, mtx, op) git_mutex_##op(&(pb)->mtx)
5252
#else
53-
# define GIT_PACKBUILDER__MUTEX_OP(pb, mtx, op) GIT_UNUSED(pb)
53+
# define GIT_PACKBUILDER__MUTEX_OP(pb, mtx, op) git__noop()
5454
#endif
5555

5656
#define git_packbuilder__cache_lock(pb) GIT_PACKBUILDER__MUTEX_OP(pb, cache_mutex, lock)

0 commit comments

Comments
 (0)