[PATCH] Annotate the parameters opt and err as unused in the functions created by the PRELUDE_PLUGIN_OPTION_DECLARE_STRING_CB macro.
Justus Winter <[email protected]> Wed, 24 Nov 2010 16:58:48 +0100
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Justus Winter <[email protected]> --- src/include/prelude-plugin.h | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/include/prelude-plugin.h b/src/include/prelude-plugin.h index f503daa..c4c4ce3 100644 --- a/src/include/prelude-plugin.h +++ b/src/include/prelude-plugin.h @@ -70,7 +70,11 @@ extern const void *lt_preloaded_symbols[]; #define PRELUDE_PLUGIN_OPTION_DECLARE_STRING_CB(prefix, type, name) \ -static int prefix ## _set_ ## name(prelude_option_t *opt, const char *optarg, prelude_string_t *err, void *context) \ +static int prefix ## _set_ ## name( \ + prelude_option_t *opt __attribute__((unused)), \ + const char *optarg, \ + prelude_string_t *err __attribute__((unused)), \ + void *context) \ { \ char *dup = NULL; \ type *ptr = prelude_plugin_instance_get_plugin_data(context); \ @@ -90,7 +94,10 @@ static int prefix ## _set_ ## name(prelude_option_t *opt, const char *optarg, pr } \ \ \ -static int prefix ## _get_ ## name(prelude_option_t *opt, prelude_string_t *out, void *context) \ +static int prefix ## _get_ ## name( \ + prelude_option_t *opt __attribute__((unused)), \ + prelude_string_t *out, \ + void *context) \ { \ type *ptr = prelude_plugin_instance_get_plugin_data(context); \ if ( ptr->name ) \ -- 1.7.2.3 _______________________________________________ Prelude-devel site list [email protected] http://lists.prelude-technologies.com/mailman/listinfo/prelude-devel