Add variable reference to quash gcc warning with -DNDEBUG.
authorMichael Poole <mdpoole@troilus.org>
Tue, 31 Jul 2007 18:55:47 +0000 (14:55 -0400)
committerMichael Poole <mdpoole@troilus.org>
Tue, 31 Jul 2007 18:55:47 +0000 (14:55 -0400)
src/mail-smtp.c

index 85b68d9f2be9b53147e637b502f046deb4fd4250..13a6c383d7969a9ee305e6fedc3b47460f895f3f 100644 (file)
@@ -383,6 +383,7 @@ static void mail_destroyed(struct io_fd *fd)
     assert(smtp_fd == fd);
     smtp_state = CLOSED;
     smtp_fd = NULL;
+    (void)fd; /* in case NDEBUG causes assert() to be empty */
 }
 
 static void mail_connected(struct io_fd *fd, int error)