re PR target/48895 (config/vms/vms-ar.c:main: variable ‘cwd’ set but not used)
authorTristan Gingold <gingold@adacore.com>
Fri, 6 May 2011 07:47:27 +0000 (07:47 +0000)
committerTristan Gingold <gingold@gcc.gnu.org>
Fri, 6 May 2011 07:47:27 +0000 (07:47 +0000)
2011-05-06  Tristan Gingold  <gingold@adacore.com>

PR target/48895
* config/vms/vms-ar.c (main): Remove cwd variable.

From-SVN: r173471

gcc/ChangeLog
gcc/config/vms/vms-ar.c

index 9ee932d3683c5ac20ab49c16b53a89127b79699d..b98ce8901c77a4ac16b041fe7d250110834e3474 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-06  Tristan Gingold  <gingold@adacore.com>
+
+       PR target/48895
+       * config/vms/vms-ar.c (main): Remove cwd variable.
+
 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/48902
index d01a05299ac281f8b0ac5cca8f7d71bddd278b4b..9f674f07e29caffc4c140766edd4c58dcd27a0dd 100644 (file)
@@ -125,13 +125,10 @@ main (int argc, char *argv[])
   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");