From 14b85b48e7a3529fda3873cb474797a8dc58ab99 Mon Sep 17 00:00:00 2001 From: Dmitry Kurochkin Date: Tue, 4 Oct 2011 21:24:31 +0400 Subject: [PATCH] Fix "variable set but not used" GCC 4.6 warnings when building without GSSAPI. --- tools/squidclient.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/squidclient.cc b/tools/squidclient.cc index 978d2379a6..e6b5172d22 100644 --- a/tools/squidclient.cc +++ b/tools/squidclient.cc @@ -211,7 +211,9 @@ main(int argc, char *argv[]) int keep_alive = 0; int opt_noaccept = 0; int opt_verbose = 0; - int www_neg, proxy_neg; +#if HAVE_GSSAPI + int www_neg = 0, proxy_neg = 0; +#endif const char *hostname, *localhost; Ip::Address iaddr; char url[BUFSIZ], msg[MESSAGELEN], buf[BUFSIZ]; @@ -243,8 +245,6 @@ main(int argc, char *argv[]) ping = 0; pcount = 0; ping_int = 1 * 1000; - www_neg = 0; - proxy_neg = 0; if (argc < 2) { usage(argv[0]); /* need URL */ -- 2.47.3