cleanup: explicitly mark unused parameters (-Wunused-parameter)
[lttng-ust.git] / liblttng-ust-ctl / ustctl.c
index 9acce7a99b9d55fac380fb782c7f70e4e78f8e62..a12e9dd377a008a308e2a9433ca5f370c7d49dd9 100644 (file)
@@ -707,7 +707,8 @@ int ustctl_wait_quiescent(int sock)
        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;
@@ -1809,7 +1810,7 @@ void ustctl_clear_buffer(struct ustctl_consumer_stream *stream)
 
 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;
@@ -2900,7 +2901,10 @@ int ustctl_counter_clear(struct ustctl_daemon_counter *counter,
        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();
@@ -2911,7 +2915,10 @@ void ustctl_init(void)
        lib_ringbuffer_signal_init();
 }
 
-static __attribute__((destructor))
+static
+void ustctl_exit(void)
+       __attribute__((destructor));
+static
 void ustctl_exit(void)
 {
        lttng_ust_counter_clients_exit();
This page took 0.035406 seconds and 4 git commands to generate.