plugin_mock: Mark params as unused in plugin-notification mocks
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Thu, 17 May 2018 10:54:40 +0000 (11:54 +0100)
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Fri, 18 May 2018 08:27:04 +0000 (09:27 +0100)
Change-Id: Iaf1b94849ad689a8e8c683a120a0ecb6cf6a872a
Signed-off-by: Radoslaw Jablonski <radoslawx.jablonski@intel.com>
src/daemon/plugin_mock.c

index 6903056..e177126 100644 (file)
@@ -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;