This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small patch for libI77
- To: gcc-patches at gcc dot gnu dot org
- Subject: Small patch for libI77
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Tue, 3 Apr 2001 15:40:44 +0200
- Cc: Toon Moene <toon at moene dot indiv dot nluug dot nl>
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