From f0379c36caadf35c41eb2acb7efad8aadaff0d68 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 8 May 2015 13:13:55 +0200 Subject: [PATCH] Avoid warning when GNUTLS is not in use --- src/tcpip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tcpip.c b/src/tcpip.c index 4f4fd48..f679637 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -1019,7 +1019,9 @@ COMSTACK tcpip_accept(COMSTACK h) TRC(fprintf(stderr, "tcpip_accept h=%p pid=%d\n", h, getpid())); if (h->state == CS_ST_INCON) { +#if HAVE_GNUTLS_H tcpip_state *st = (tcpip_state *)h->cprivate; +#endif tcpip_state *state = tcpip_state_create(); cnew = (COMSTACK) xmalloc(sizeof(*cnew)); -- 1.7.10.4