From patchwork Fri May 6 07:46:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix PR 48895 (vms-ar.c) Date: Thu, 05 May 2011 21:46:34 -0000 From: Tristan Gingold X-Patchwork-Id: 94342 Message-Id: <8B2A973E-14AA-47B8-AAA1-B771525DDDDD@adacore.com> To: "gcc-patches@gcc.gnu.org Patches" 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 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");