From: Amos Jeffries Date: Fri, 22 Jul 2011 14:15:48 +0000 (+1200) Subject: Fix GCC4.6 warning unused variable when --disable-internal-dns X-Git-Tag: take08~55^2~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12f3560e8ed942b6d4fba915727ff910c29c9ad9;p=thirdparty%2Fsquid.git Fix GCC4.6 warning unused variable when --disable-internal-dns --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 46e16fc3d0..ed538e6465 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -592,7 +592,6 @@ ipcacheHandleReply(void *data, char *reply) ipcacheHandleReply(void *data, rfc1035_rr * answers, int na, const char *error_message) #endif { - int done; ipcache_entry *i; static_cast(data)->unwrap(&i); IpcacheStats.replies++; @@ -600,11 +599,10 @@ ipcacheHandleReply(void *data, rfc1035_rr * answers, int na, const char *error_m statHistCount(&statCounter.dns.svc_time, age); #if USE_DNSSERVERS - - done = ipcacheParse(i, reply); + ipcacheParse(i, reply); #else - done = ipcacheParse(i, answers, na, error_message); + int done = ipcacheParse(i, answers, na, error_message); /* If we have not produced either IPs or Error immediately, wait for recursion to finish. */ if (done != 0 || error_message != NULL)