From: Dmitry Kurochkin Date: Tue, 4 Oct 2011 17:24:31 +0000 (+0400) Subject: Fix "variable set but not used" GCC 4.6 warnings when building without GSSAPI. X-Git-Tag: BumpSslServerFirst.take01~122^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14b85b48e7a3529fda3873cb474797a8dc58ab99;p=thirdparty%2Fsquid.git Fix "variable set but not used" GCC 4.6 warnings when building without GSSAPI. --- 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 */