updated for version 7.2-055
diff --git a/src/ui.c b/src/ui.c
index 6d408b0..8cff1d8 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1820,7 +1820,7 @@
 #ifdef HAVE_DUP
 	    /* Use stderr for stdin, also works for shell commands. */
 	    close(0);
-	    dup(2);
+	    ignored = dup(2);
 #else
 	    read_cmd_fd = 2;	/* read from stderr instead of stdin */
 #endif