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 <ging...@adacore.com> 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");