1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 14:39:24 -05:00

Avoid "unused variable" warning when NO_IPV6 defined.

[originally from svn r7710]
This commit is contained in:
Ben Harris 2007-09-03 20:52:56 +00:00
parent 54321544d4
commit 2323cb947e

View File

@ -1049,7 +1049,9 @@ static void portfwd_handler(union control *ctrl, void *dlg,
{ {
static const char *const afs = "A46"; static const char *const afs = "A46";
char *afp = strchr(afs, *p); char *afp = strchr(afs, *p);
#ifndef NO_IPV6
int idx = afp ? afp-afs : 0; int idx = afp ? afp-afs : 0;
#endif
if (afp) if (afp)
p++; p++;
#ifndef NO_IPV6 #ifndef NO_IPV6