1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00: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";
char *afp = strchr(afs, *p);
#ifndef NO_IPV6
int idx = afp ? afp-afs : 0;
#endif
if (afp)
p++;
#ifndef NO_IPV6