Fix a couple of unused variable warnings
[claws.git] / src / plugins / spamassassin / libspamc.c
index 623c1ab33dbda4ee4cbca6f83d8f1d37307720c8..09e52b05cf7a59b7fd24a780f12491fe61efade1 100644 (file)
@@ -488,6 +488,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:
@@ -500,6 +501,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;
@@ -1908,7 +1910,7 @@ static void _randomize_hosts(struct transport *tp)
 int transport_setup(struct transport *tp, int flags)
 {
 #ifdef SPAMC_HAS_ADDRINFO
-    struct addrinfo hints, *res, *addrp;
+    struct addrinfo hints, *res; /* , *addrp; */
     char port[6];
     int origerr;
 #else