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:
parent
54321544d4
commit
2323cb947e
2
config.c
2
config.c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user