It was only used to define 'UNUSED_VAR' which we can use literally.
Change-Id: Idf84f6ecee711e2caf4b7d68f5e6f598b0aca22e
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1425
Tested-by: jenkins
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
if ENABLE_DEBUG_INFO
SUBDIRS += lttng-utils
endif
-
-noinst_HEADERS = plugins-common.h
#include "common/common.h"
#include <babeltrace2/babeltrace.h>
#include "compat/uuid.h"
-#include "plugins/plugins-common.h"
#include <glib.h>
#include "common/assert.h"
#include <inttypes.h>
BT_HIDDEN
bt_self_component_status ctf_fs_init(
bt_self_component_source *self_comp,
- const bt_value *params, UNUSED_VAR void *init_method_data)
+ const bt_value *params, __attribute__((unused)) void *init_method_data)
{
struct ctf_fs_component *ctf_fs;
bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
#include <babeltrace2/babeltrace.h>
#include "compat/compiler.h"
#include <babeltrace2/types.h>
-#include "plugins/plugins-common.h"
#include "data-stream.h"
#include "metadata.h"
BT_HIDDEN
bt_self_component_status lttng_live_component_init(
bt_self_component_source *self_comp,
- const bt_value *params, UNUSED_VAR void *init_method_data)
+ const bt_value *params, __attribute__((unused)) void *init_method_data)
{
struct lttng_live_component *lttng_live;
bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
#include "logging.h"
#include <glib.h>
-#include "plugins/plugins-common.h"
#include "common/assert.h"
#include "common/common.h"
BT_HIDDEN
bt_self_component_status debug_info_comp_init(
bt_self_component_filter *self_comp,
- const bt_value *params, UNUSED_VAR void *init_method_data)
+ const bt_value *params, __attribute__((unused)) void *init_method_data)
{
int ret;
struct debug_info_component *debug_info_comp;
+++ /dev/null
-#ifndef PLUGINS_COMMON_H
-#define PLUGINS_COMMON_H
-
-/*
- * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-/*
- * UNUSED_VAR: tag a variable or parameter as explicitly unused so that
- * the compiler does not warn.
- */
-#define UNUSED_VAR __attribute__((unused))
-
-#endif /* PLUGINS_COMMON_H */
#include <babeltrace2/babeltrace.h>
#include "compat/compiler.h"
#include "common/common.h"
-#include "plugins/plugins-common.h"
#include <stdio.h>
#include <stdbool.h>
#include <glib.h>
bt_self_component_status pretty_init(
bt_self_component_sink *comp,
const bt_value *params,
- UNUSED_VAR void *init_method_data)
+ __attribute__((unused)) void *init_method_data)
{
bt_self_component_status ret;
struct pretty_component *pretty = create_pretty();
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include "common/common.h"
-#include "plugins/plugins-common.h"
#include "common/assert.h"
#include <inttypes.h>
#include <stdint.h>
bt_self_component_status counter_init(
bt_self_component_sink *component,
const bt_value *params,
- UNUSED_VAR void *init_method_data)
+ __attribute__((unused)) void *init_method_data)
{
bt_self_component_status ret;
struct counter *counter = g_new0(struct counter, 1);
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
-#include "plugins/plugins-common.h"
#include "common/assert.h"
#include "dummy.h"
bt_self_component_status dummy_init(
bt_self_component_sink *component,
const bt_value *params,
- UNUSED_VAR void *init_method_data)
+ __attribute__((unused)) void *init_method_data)
{
bt_self_component_status ret;
struct dummy *dummy = g_new0(struct dummy, 1);
#include "lib/graph/component.h"
#include "lib/graph/message/iterator.h"
#include "lib/graph/connection.h"
-#include "plugins/plugins-common.h"
#include <glib.h>
#include <stdbool.h>
#include <inttypes.h>
#include "compat/time.h"
#include <babeltrace2/babeltrace.h>
#include "common/common.h"
-#include "plugins/plugins-common.h"
#include "common/assert.h"
#include <stdint.h>
#include <inttypes.h>