Plugins: use UNUSED_VAR instead of casting to void
[babeltrace.git] / plugins / writer / writer.c
index 4b36757fb628cba75b0647c2a380facdfd1ab6fc..8e4703768f9473a6e6f5da5bde9910f94ec55477 100644 (file)
@@ -34,6 +34,7 @@
 #include <babeltrace/component/notification/iterator.h>
 #include <babeltrace/component/notification/event.h>
 #include <babeltrace/component/notification/packet.h>
+#include <plugins-common.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <glib.h>
@@ -214,14 +215,13 @@ end:
 static
 enum bt_component_status writer_component_init(
        struct bt_component *component, struct bt_value *params,
-       void *init_method_data)
+       UNUSED_VAR void *init_method_data)
 {
        enum bt_component_status ret;
        enum bt_value_status value_ret;
        struct writer_component *writer_component = create_writer_component();
        struct bt_value *value = NULL;
        const char *path;
-       (void) init_method_data;
 
        if (!writer_component) {
                ret = BT_COMPONENT_STATUS_NOMEM;
This page took 0.023113 seconds and 4 git commands to generate.