add-interactive: mark unused callback parameters
The interactive commands are dispatched from a table of abstract pointers, but not every command uses every parameter it receives. Mark the unused ones to silence -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
bcba446228
commit
57dbb70cd9
@ -1021,9 +1021,9 @@ static int run_diff(struct add_i_state *s, const struct pathspec *ps,
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int run_help(struct add_i_state *s, const struct pathspec *unused_ps,
|
static int run_help(struct add_i_state *s, const struct pathspec *ps UNUSED,
|
||||||
struct prefix_item_list *unused_files,
|
struct prefix_item_list *files UNUSED,
|
||||||
struct list_and_choose_options *unused_opts)
|
struct list_and_choose_options *opts UNUSED)
|
||||||
{
|
{
|
||||||
color_fprintf_ln(stdout, s->help_color, "status - %s",
|
color_fprintf_ln(stdout, s->help_color, "status - %s",
|
||||||
_("show paths with changes"));
|
_("show paths with changes"));
|
||||||
@ -1074,7 +1074,7 @@ struct print_command_item_data {
|
|||||||
const char *color, *reset;
|
const char *color, *reset;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void print_command_item(int i, int selected,
|
static void print_command_item(int i, int selected UNUSED,
|
||||||
struct string_list_item *item,
|
struct string_list_item *item,
|
||||||
void *print_command_item_data)
|
void *print_command_item_data)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user