This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Small patch for libI77



This way you'll avoid warnings about unused variables. IMHO an obvious
fix but I'd rather ask before checking it in. OK, Toon?


2001-04-03  Philipp Thomas <pthomas@suse.de>

	* libI77/open.c (f_open): Conditionally define variables
	only need when HAVE_MKSTEMP is defined.
	
Index: libf2c/libI77/open.c
===================================================================
RCS file: /cvs/gcc/egcs/libf2c/libI77/open.c,v
retrieving revision 1.8
diff -u -r1.8 open.c
--- open.c	2000/11/15 18:26:42	1.8
+++ open.c	2001/04/03 13:12:11
@@ -133,11 +133,14 @@
 #endif
 {	unit *b;
 	integer rv;
-	char buf[256], *s, *env;
+	char buf[256], *s;
 	cllist x;
 	int ufmt;
 	FILE *tf;
+#ifdef HAVE_MKSTEMP
+	char *env;
 	int fd, len;
+#endif
 #ifndef NON_UNIX_STDIO
 	int n;
 #endif

-- 
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany

Penguins shall save the dinosaurs
                          -- Handelsblatt about Linux on S/390


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]