diff mbox

Fix PR 48895 (vms-ar.c)

Message ID 8B2A973E-14AA-47B8-AAA1-B771525DDDDD@adacore.com
State New
Headers show

Commit Message

Tristan Gingold May 6, 2011, 7:46 a.m. UTC
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.
diff mbox

Patch

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");