This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] Fix PR 48895 (vms-ar.c)
- From: Tristan Gingold <gingold at adacore dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 6 May 2011 09:46:34 +0200
- Subject: [Patch] Fix PR 48895 (vms-ar.c)
Hi,
this patch fixes a gcc warning on vms-ar.c (variable set but not used).
I didn't notice it because I wasn't compiling with a recent enough gcc version.
Committed on trunk.
Tristan.
gcc/
2011-05-06 Tristan Gingold <gingold@adacore.com>
PR target/48895
* config/vms/vms-ar.c (main): Remove cwd variable.
Index: gcc/config/vms/vms-ar.c
===================================================================
--- gcc/config/vms/vms-ar.c (revision 173470)
+++ gcc/config/vms/vms-ar.c (working copy)
@@ -125,13 +125,10 @@
FILE *comfile;
int comfd;
int outlen, maxoutlen = 4000;
- char *cwd;
char temp_filename[] = TEMP_FILE SUFFIX;
char command[256];
int status;
- cwd = getcwd (0, 1024);
-
if (argc < 2)
{
fprintf (stderr, "ar: no command or archive\n");