Bug Summary

File:builtin/bisect--helper.c
Location:line 23, column 2
Description:Value stored to 'argc' is never read

Annotated Source Code

1#include "builtin.h"
2#include "cache.h"
3#include "parse-options.h"
4#include "bisect.h"
5
6static const char * const git_bisect_helper_usage[] = {
7 N_("git bisect--helper --next-all [--no-checkout]")("git bisect--helper --next-all [--no-checkout]"),
8 NULL((void*)0)
9};
10
11int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
12{
13 int next_all = 0;
14 int no_checkout = 0;
15 struct option options[] = {
16 OPT_BOOL(0, "next-all", &next_all,{ OPTION_SET_INT, (0), ("next-all"), (&next_all), ((void*
)0), (("perform 'git bisect next'")), PARSE_OPT_NOARG, ((void
*)0), (1) }
17 N_("perform 'git bisect next'")){ OPTION_SET_INT, (0), ("next-all"), (&next_all), ((void*
)0), (("perform 'git bisect next'")), PARSE_OPT_NOARG, ((void
*)0), (1) }
,
18 OPT_BOOL(0, "no-checkout", &no_checkout,{ OPTION_SET_INT, (0), ("no-checkout"), (&no_checkout), (
(void*)0), (("update BISECT_HEAD instead of checking out the current commit"
)), PARSE_OPT_NOARG, ((void*)0), (1) }
19 N_("update BISECT_HEAD instead of checking out the current commit")){ OPTION_SET_INT, (0), ("no-checkout"), (&no_checkout), (
(void*)0), (("update BISECT_HEAD instead of checking out the current commit"
)), PARSE_OPT_NOARG, ((void*)0), (1) }
,
20 OPT_END(){ OPTION_END }
21 };
22
23 argc = parse_options(argc, argv, prefix, options,
Value stored to 'argc' is never read
24 git_bisect_helper_usage, 0);
25
26 if (!next_all)
27 usage_with_options(git_bisect_helper_usage, options);
28
29 /* next-all */
30 return bisect_next_all(prefix, no_checkout);
31}