From ceb6dac105f978c09b5d8f6c4e913684b29b10c0 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Tue, 1 Dec 2009 23:36:24 +0000
Subject: [PATCH] removed extra variable not in use here

---
 src/srun/opt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/srun/opt.c b/src/srun/opt.c
index 3abfedb79bf..50a78631662 100644
--- a/src/srun/opt.c
+++ b/src/srun/opt.c
@@ -819,8 +819,9 @@ static void set_options(const int argc, char **argv)
 	};
 	char *opt_string = "+aA:bB:c:C:d:D:e:Eg:Hi:IjJ:kKlL:m:n:N:"
 		"o:Op:P:qQr:Rst:T:uU:vVw:W:x:XZ";
+#ifdef HAVE_PTY_H
 	char *tmp_str;
-
+#endif
 	struct option *optz = spank_option_table_create (long_options);
 
 	if (!optz) {
-- 
GitLab