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)
st->ptr, st->len,
obuf, sizeof obuf, &obufl);
/* XXX: error check */
(void)i;
}
if (obufl) {
(void)WRW_Write(sp->wrk, obuf, obufl);
......
......@@ -494,7 +494,6 @@ replay_thread(void *arg)
struct replay_thread *thr = arg;
struct message *msg;
enum VSL_tag_e tag;
size_t len;
char *ptr;
const char *next;
......@@ -504,7 +503,6 @@ replay_thread(void *arg)
while ((msg = mailbox_get(&thr->mbox)) != NULL) {
tag = msg->tag;
len = msg->len;
ptr = 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,
unsigned len, unsigned spec, const char *ptr, uint64_t bitmap)
{
struct replay_thread *thr;
const char *end;
struct message *msg;
(void)priv;
(void)bitmap;
end = ptr + len;
if (fd == 0 || !(spec & VSL_S_CLIENT))
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