From 155b61760df4ffe4a3dfcbd76da2f987241255b1 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 6 May 2011 07:47:27 +0000 Subject: [PATCH] =?utf8?q?re=20PR=20target/48895=20(config/vms/vms-ar.c:ma?= =?utf8?q?in:=20variable=20=E2=80=98cwd=E2=80=99=20set=20but=20not=20used)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2011-05-06 Tristan Gingold PR target/48895 * config/vms/vms-ar.c (main): Remove cwd variable. From-SVN: r173471 --- gcc/ChangeLog | 5 +++++ gcc/config/vms/vms-ar.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) 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"); -- 2.30.2