return 0;
}
-int ustctl_calibrate(int sock, struct lttng_ust_abi_calibrate *calibrate)
+int ustctl_calibrate(int sock __attribute__((unused)),
+ struct lttng_ust_abi_calibrate *calibrate)
{
if (!calibrate)
return -EINVAL;
static
struct lttng_ust_client_lib_ring_buffer_client_cb *get_client_cb(
- struct lttng_ust_lib_ring_buffer *buf,
+ struct lttng_ust_lib_ring_buffer *buf __attribute__((unused)),
struct lttng_ust_lib_ring_buffer_channel *chan)
{
const struct lttng_ust_lib_ring_buffer_config *config;
return counter->ops->counter_clear(counter->counter, dimension_indexes);
}
-static __attribute__((constructor))
+static
+void ustctl_init(void)
+ __attribute__((constructor));
+static
void ustctl_init(void)
{
ust_err_init();
lib_ringbuffer_signal_init();
}
-static __attribute__((destructor))
+static
+void ustctl_exit(void)
+ __attribute__((destructor));
+static
void ustctl_exit(void)
{
lttng_ust_counter_clients_exit();