Plugins: use UNUSED_VAR instead of casting to void
[babeltrace.git] / plugins / ctf / fs / fs.c
index 75be8f13a552b2b0ee164821e61e50612508baa8..450627d7bb60258b101590fadb31858df9e94443 100644 (file)
@@ -33,6 +33,7 @@
 #include <babeltrace/component/notification/event.h>
 #include <babeltrace/component/notification/packet.h>
 #include <babeltrace/component/notification/heap.h>
+#include <plugins-common.h>
 #include <glib.h>
 #include <assert.h>
 #include <unistd.h>
@@ -723,11 +724,10 @@ end:
 
 BT_HIDDEN
 enum bt_component_status ctf_fs_init(struct bt_component *source,
-               struct bt_value *params, void *init_method_data)
+               struct bt_value *params, UNUSED_VAR void *init_method_data)
 {
        struct ctf_fs_component *ctf_fs;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
-       (void) init_method_data;
 
        assert(source);
        ctf_fs_debug = g_strcmp0(getenv("CTF_FS_DEBUG"), "1") == 0;
This page took 0.028972 seconds and 4 git commands to generate.