Commit 7be36230 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Fix compilation errors (set-but-unused variables)

Thanks to new GCC for spotting those.
parent c0ec0ef4
...@@ -265,6 +265,7 @@ res_WriteGunzipObj(struct sess *sp) ...@@ -265,6 +265,7 @@ res_WriteGunzipObj(struct sess *sp)
st->ptr, st->len, st->ptr, st->len,
obuf, sizeof obuf, &obufl); obuf, sizeof obuf, &obufl);
/* XXX: error check */ /* XXX: error check */
(void)i;
} }
if (obufl) { if (obufl) {
(void)WRW_Write(sp->wrk, obuf, obufl); (void)WRW_Write(sp->wrk, obuf, obufl);
......
...@@ -494,7 +494,6 @@ replay_thread(void *arg) ...@@ -494,7 +494,6 @@ replay_thread(void *arg)
struct replay_thread *thr = arg; struct replay_thread *thr = arg;
struct message *msg; struct message *msg;
enum VSL_tag_e tag; enum VSL_tag_e tag;
size_t len;
char *ptr; char *ptr;
const char *next; const char *next;
...@@ -504,7 +503,6 @@ replay_thread(void *arg) ...@@ -504,7 +503,6 @@ replay_thread(void *arg)
while ((msg = mailbox_get(&thr->mbox)) != NULL) { while ((msg = mailbox_get(&thr->mbox)) != NULL) {
tag = msg->tag; tag = msg->tag;
len = msg->len;
ptr = msg->ptr; ptr = msg->ptr;
thread_log(2, 0, "%s(%s)", VSL_tags[tag], msg->ptr); thread_log(2, 0, "%s(%s)", VSL_tags[tag], msg->ptr);
...@@ -639,14 +637,11 @@ gen_traffic(void *priv, enum VSL_tag_e tag, unsigned fd, ...@@ -639,14 +637,11 @@ gen_traffic(void *priv, enum VSL_tag_e tag, unsigned fd,
unsigned len, unsigned spec, const char *ptr, uint64_t bitmap) unsigned len, unsigned spec, const char *ptr, uint64_t bitmap)
{ {
struct replay_thread *thr; struct replay_thread *thr;
const char *end;
struct message *msg; struct message *msg;
(void)priv; (void)priv;
(void)bitmap; (void)bitmap;
end = ptr + len;
if (fd == 0 || !(spec & VSL_S_CLIENT)) if (fd == 0 || !(spec & VSL_S_CLIENT))
return (0); return (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment