Cleanup warnings
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Sep 2011 15:44:34 +0000 (11:44 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Sep 2011 15:44:34 +0000 (11:44 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/ring_buffer_frontend.c

index 0b4b89f7306fee1b77bf4e9b44c9ec48e47af643..2cb99a3e608c72a97325ee3c64c7ffe31d78f8e1 100644 (file)
@@ -266,7 +266,7 @@ static void lib_ring_buffer_start_switch_timer(struct lib_ring_buffer *buf,
                           struct shm_handle *handle)
 {
        struct channel *chan = shmp(handle, buf->backend.chan);
-       const struct lib_ring_buffer_config *config = &chan->backend.config;
+       //const struct lib_ring_buffer_config *config = &chan->backend.config;
 
        if (!chan->switch_timer_interval || buf->switch_timer_enabled)
                return;
@@ -398,8 +398,6 @@ static void channel_unregister_notifiers(struct channel *chan,
 static void channel_free(struct channel *chan, struct shm_handle *handle,
                int shadow)
 {
-       int ret;
-
        if (!shadow)
                channel_backend_free(&chan->backend, handle);
        /* chan is freed by shm teardown */
@@ -656,8 +654,6 @@ int lib_ring_buffer_open_read(struct lib_ring_buffer *buf,
                              struct shm_handle *handle,
                              int shadow)
 {
-       struct channel *chan = shmp(handle, buf->backend.chan);
-
        if (shadow) {
                if (uatomic_cmpxchg(&buf->active_shadow_readers, 0, 1) != 0)
                        return -EBUSY;
This page took 0.026761 seconds and 4 git commands to generate.