Plugins: use UNUSED_VAR instead of casting to void
[babeltrace.git] / plugins / text / text.c
index 2652e6b2f13ecef5b5ebf1b4467c69414015e5c4..78ddd4c58c401f65d2d66253604af810339826d5 100644 (file)
@@ -35,6 +35,7 @@
 #include <babeltrace/component/notification/event.h>
 #include <babeltrace/values.h>
 #include <babeltrace/compiler.h>
+#include <plugins-common.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <glib.h>
@@ -605,11 +606,10 @@ end:
 static
 enum bt_component_status text_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;
        struct text_component *text = create_text();
-       (void) init_method_data;
 
        if (!text) {
                ret = BT_COMPONENT_STATUS_NOMEM;
This page took 0.025636 seconds and 4 git commands to generate.