From 2323cb947e2923f2d15137b17697b36985f849c9 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 3 Sep 2007 20:52:56 +0000 Subject: [PATCH] Avoid "unused variable" warning when NO_IPV6 defined. [originally from svn r7710] --- config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.c b/config.c index d5b50dd1..fd1379ab 100644 --- a/config.c +++ b/config.c @@ -1049,7 +1049,9 @@ static void portfwd_handler(union control *ctrl, void *dlg, { static const char *const afs = "A46"; char *afp = strchr(afs, *p); +#ifndef NO_IPV6 int idx = afp ? afp-afs : 0; +#endif if (afp) p++; #ifndef NO_IPV6 -- 2.45.2