From: Andre Noll Date: Tue, 13 Jun 2017 19:39:12 +0000 (+0200) Subject: Make dummy completers static. X-Git-Tag: v0.6.1~51 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=4791d009b3a2952e9c1d2bef22a5f301d28ed2a0;ds=sidebyside Make dummy completers static. This revealed that the completers for SUPERCOMMAND_UNAVAILABLE are all unused.. --- diff --git a/audioc.c b/audioc.c index 503afc57..1d69b2c1 100644 --- a/audioc.c +++ b/audioc.c @@ -132,7 +132,6 @@ static void grab_completer(struct i9e_completion_info *ci, i9e_complete_option(opts, ci, cr); } -I9E_DUMMY_COMPLETER(SUPERCOMMAND_UNAVAILABLE); static struct i9e_completer audiod_completers[] = { #define LSG_AUDIOD_CMD_CMD(_name) {.name = #_name, \ .completer = _name ## _completer} diff --git a/client.c b/client.c index 3cb00e8b..2607ee20 100644 --- a/client.c +++ b/client.c @@ -497,7 +497,6 @@ static int client_i9e_line_handler(char *line) return 1; } -I9E_DUMMY_COMPLETER(SUPERCOMMAND_UNAVAILABLE); static struct i9e_completer completers[] = { #define LSG_SERVER_CMD_CMD(_name) {.name = #_name, \ .completer = _name ## _completer} diff --git a/interactive.h b/interactive.h index e6d53dee..82d3cd71 100644 --- a/interactive.h +++ b/interactive.h @@ -33,7 +33,7 @@ struct i9e_completion_result { * * \param name Determines the name of the function to be defined. */ -#define I9E_DUMMY_COMPLETER(name) void name ## _completer( \ +#define I9E_DUMMY_COMPLETER(name) static void name ## _completer( \ __a_unused struct i9e_completion_info *ciname, \ struct i9e_completion_result *result) {result->matches = NULL;} diff --git a/play.c b/play.c index 5fbf44c6..2155ebf8 100644 --- a/play.c +++ b/play.c @@ -718,7 +718,6 @@ static void help_completer(struct i9e_completion_info *ci, result->matches = i9e_complete_commands(ci->word, pp_completers); } -I9E_DUMMY_COMPLETER(SUPERCOMMAND_UNAVAILABLE); static struct i9e_completer pp_completers[] = { #define LSG_PLAY_CMD_CMD(_name) {.name = #_name, \ .completer = _name ## _completer}