From: Tristan Gingold Date: Fri, 6 May 2011 07:47:27 +0000 (+0000) Subject: re PR target/48895 (config/vms/vms-ar.c:main: variable ‘cwd’ set but not used) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=155b61760df4ffe4a3dfcbd76da2f987241255b1;p=gcc.git re PR target/48895 (config/vms/vms-ar.c:main: variable ‘cwd’ set but not used) 2011-05-06 Tristan Gingold PR target/48895 * config/vms/vms-ar.c (main): Remove cwd variable. From-SVN: r173471 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ee932d3683..b98ce8901c7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-06 Tristan Gingold + + PR target/48895 + * config/vms/vms-ar.c (main): Remove cwd variable. + 2011-05-06 Jakub Jelinek PR debug/48902 diff --git a/gcc/config/vms/vms-ar.c b/gcc/config/vms/vms-ar.c index d01a05299ac..9f674f07e29 100644 --- a/gcc/config/vms/vms-ar.c +++ b/gcc/config/vms/vms-ar.c @@ -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");