talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 459e3e6a24fd3c6eeaec2531f80ec8910f2c196d
parent e49be90833584609100579a78c85705dee5866cb
Author: Ricardo Mones <ricardo@mones.org>
Date:   Thu, 24 Jul 2025 19:58:20 +0200

Fix warning: variable 'family' set but not used

Diffstat:
Msrc/plugins/spamassassin/libspamc.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/plugins/spamassassin/libspamc.c b/src/plugins/spamassassin/libspamc.c @@ -490,6 +490,7 @@ static int _try_to_connect_tcp(const struct transport *tp, int *sockptr) #ifdef SPAMC_HAS_ADDRINFO res = tp->hosts[hostix]; while(res) { +#ifdef DO_CONNECT_DEBUG_SYSLOGS char *family = NULL; switch(res->ai_family) { case AF_INET: @@ -502,6 +503,7 @@ static int _try_to_connect_tcp(const struct transport *tp, int *sockptr) family = "Unknown"; break; } +#endif if ((ret = _opensocket(tp->flags, res, &mysock)) != EX_OK) { res = res->ai_next;