Compiler quietening
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sun, 9 Aug 2015 21:29:44 +0000 (23:29 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Sun, 9 Aug 2015 21:29:44 +0000 (23:29 +0200)
src/src/malware.c
src/src/spam.c
src/src/tlscert-openssl.c

index 141c6ea16c20e92f4f6722b83c01dc73a3c72768..96af1e8c6a49edb1a76bbfa327ed984ef8600cc6 100644 (file)
@@ -886,7 +886,7 @@ if (!malware_ok)
              string_sprintf("unable to read result (%s)", strerror(errno)),
              sock);
 
-         for (p[bread] = '\0'; q = Ustrchr(p, '\n'); p = q+1)
+         for (p[bread] = '\0'; (q = Ustrchr(p, '\n')); p = q+1)
            {
            *q = '\0';
 
@@ -1880,6 +1880,9 @@ if (!malware_ok)
 
              /* here for any unexpected response from the scanner */
              goto endloop;
+
+           case AVA_DONE:      log_write(0, LOG_PANIC, "%s:%d:%s: should not happen",
+                           __FILE__, __LINE__, __FUNCTION__);
            }
          }
        }
index ca8d20720a3d897cdb56a802f87f991aac41400a..457aa3a36113097be0e86a024924beabec23cb2b 100644 (file)
@@ -297,7 +297,7 @@ start = time(NULL);
     sd = (spamd_address_container *)store_get(sizeof(spamd_address_container));
 
     for (sublist = address, args = 0, spamd_param_init(sd);
-        s = string_nextinlist(&sublist, &sublist_sep, NULL, 0);
+        (s = string_nextinlist(&sublist, &sublist_sep, NULL, 0));
         args++
         )
       {
index 72808a7ad797fc34745756589a7f9ada7c1b78b6..19db0408f37acfd675931846ea7b0ac26c01fd1c 100644 (file)
@@ -127,7 +127,7 @@ else
   {
   struct tm tm;
   struct tm * tm_p = &tm;
-  BOOL mod_tz;
+  BOOL mod_tz = TRUE;
   uschar * tz = to_tz(US"GMT0");    /* need to call strptime with baseline TZ */
 
   /* Parse OpenSSL ASN1_TIME_print output.  A shame there seems to
@@ -164,7 +164,7 @@ else
       }
     }
 
-  if (mod_tz);
+  if (mod_tz)
     restore_tz(tz);
   }
 BIO_free(bp);