Skip to content

Commit 2b34e48

Browse files
mkiedrowiczgitster
authored andcommitted
pack-objects: Fix compilation with NO_PTHREDS
It looks like commit 99fb6e0 (pack-objects: convert to use parse_options(), 2012-02-01) moved the #ifdef NO_PTHREDS around but hasn't noticed that the 'arg' variable no longer is available. Signed-off-by: Michał Kiedrowicz <[email protected]> Acked-by: Nguyen Thai Ngoc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8080906 commit 2b34e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
24512451
die("bad pack compression level %d", pack_compression_level);
24522452
#ifdef NO_PTHREADS
24532453
if (delta_search_threads != 1)
2454-
warning("no threads support, ignoring %s", arg);
2454+
warning("no threads support, ignoring --threads");
24552455
#endif
24562456
if (!pack_to_stdout && !pack_size_limit)
24572457
pack_size_limit = pack_size_limit_cfg;

0 commit comments

Comments
 (0)