This didn't provoke a warning, but deserves removal nonetheless:
>From 5c963f18c8536d0999f79deb924ff2c83f969ae7 Mon Sep 17 00:00:00 2001
From: Jim Meyering <[email protected]>
Date: Mon, 23 Mar 2009 09:11:55 +0100
Subject: [PATCH] remove unused variable "my_read"
* lib/coroipcc.c (coroipcc_dispatch_recv): Remove set-but-not-used var.
---
lib/coroipcc.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/lib/coroipcc.c b/lib/coroipcc.c
index 47937ee..9baf159 100644
--- a/lib/coroipcc.c
+++ b/lib/coroipcc.c
@@ -459,7 +459,6 @@ coroipcc_dispatch_recv (void *ipc_ctx, void *data, int
timeout)
char buf;
struct ipc_segment *ipc_segment = (struct ipc_segment *)ipc_ctx;
int res;
- unsigned int my_read;
char buf_two = 1;
ufds.fd = ipc_segment->fd;
@@ -532,7 +531,6 @@ retry_semop:
}
if (ipc_segment->shared_memory->read + sizeof (mar_res_header_t) >=
DISPATCH_SIZE) {
- my_read = ipc_segment->shared_memory->read;
memcpy_swrap (data,
ipc_segment->shared_memory->dispatch_buffer,
sizeof (mar_res_header_t),
--
1.6.2.rc1.285.gc5f54
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais