Hello.
A simple patch that makes Squid build without GSSAPI warning-free on GCC 4.6.
Regards,
Dmitry
Fix "variable set but not used" GCC 4.6 warnings when building without GSSAPI.
=== modified file 'tools/squidclient.cc'
--- tools/squidclient.cc 2011-08-07 09:37:18 +0000
+++ tools/squidclient.cc 2011-09-27 14:46:04 +0000
@@ -211,7 +211,9 @@
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 @@
ping = 0;
pcount = 0;
ping_int = 1 * 1000;
- www_neg = 0;
- proxy_neg = 0;
if (argc < 2) {
usage(argv[0]); /* need URL */