From: Radoslaw Jablonski Date: Thu, 17 May 2018 10:54:40 +0000 (+0100) Subject: plugin_mock: Mark params as unused in plugin-notification mocks X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9dc817368fe60a6b21c8e05acd605f43c81d97d9;p=collectd.git plugin_mock: Mark params as unused in plugin-notification mocks Change-Id: Iaf1b94849ad689a8e8c683a120a0ecb6cf6a872a Signed-off-by: Radoslaw Jablonski --- diff --git a/src/daemon/plugin_mock.c b/src/daemon/plugin_mock.c index 69030566..e177126f 100644 --- a/src/daemon/plugin_mock.c +++ b/src/daemon/plugin_mock.c @@ -71,38 +71,64 @@ int plugin_register_data_set(const data_set_t *ds) { return ENOTSUP; } int plugin_dispatch_values(value_list_t const *vl) { return ENOTSUP; } -int plugin_dispatch_notification(const notification_t *notif) { +int plugin_dispatch_notification(__attribute__((unused)) + const notification_t *notif) { return ENOTSUP; } -int plugin_notification_meta_add_string(notification_t *n, const char *name, +int plugin_notification_meta_add_string(__attribute__((unused)) + notification_t *n, + __attribute__((unused)) + const char *name, + __attribute__((unused)) const char *value) { return ENOTSUP; } -int plugin_notification_meta_add_signed_int(notification_t *n, const char *name, + +int plugin_notification_meta_add_signed_int(__attribute__((unused)) + notification_t *n, + __attribute__((unused)) + const char *name, + __attribute__((unused)) int64_t value) { return ENOTSUP; } -int plugin_notification_meta_add_unsigned_int(notification_t *n, + +int plugin_notification_meta_add_unsigned_int(__attribute__((unused)) + notification_t *n, + __attribute__((unused)) const char *name, + __attribute__((unused)) uint64_t value) { return ENOTSUP; } -int plugin_notification_meta_add_double(notification_t *n, const char *name, - double value) { + +int plugin_notification_meta_add_double(__attribute__((unused)) + notification_t *n, + __attribute__((unused)) + const char *name, + __attribute__((unused)) double value) { return ENOTSUP; } -int plugin_notification_meta_add_boolean(notification_t *n, const char *name, - _Bool value) { + +int plugin_notification_meta_add_boolean(__attribute__((unused)) + notification_t *n, + __attribute__((unused)) + const char *name, + __attribute__((unused)) _Bool value) { return ENOTSUP; } -int plugin_notification_meta_copy(notification_t *dst, +int plugin_notification_meta_copy(__attribute__((unused)) notification_t *dst, + __attribute__((unused)) const notification_t *src) { return ENOTSUP; } -int plugin_notification_meta_free(notification_meta_t *n) { return ENOTSUP; } +int plugin_notification_meta_free(__attribute__((unused)) + notification_meta_t *n) { + return ENOTSUP; +} int plugin_flush(const char *plugin, cdtime_t timeout, const char *identifier) { return ENOTSUP;