aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-01-16 17:18:36 +0000
committerDoug Evans <dje@gnu.org>1996-01-16 17:18:36 +0000
commited846da3088db9cfaff7d046773847ba47128891 (patch)
treeb06ce4d5c3983b9df8c358982e16d7c4842e35cd /gcc/gcc.c
parent3c35520e75d5aa3bd8cf6da251e8c71b9945eebc (diff)
downloadgcc-ed846da3088db9cfaff7d046773847ba47128891.zip
gcc-ed846da3088db9cfaff7d046773847ba47128891.tar.gz
gcc-ed846da3088db9cfaff7d046773847ba47128891.tar.bz2
(do_spec_1, case 'W'): Rename local `index' to `cur_index' to avoid warning
on solaris. From-SVN: r11030
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 53d3dbc..613e904 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3412,7 +3412,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
case 'W':
{
- int index = argbuf_index;
+ int cur_index = argbuf_index;
/* Handle the {...} following the %W. */
if (*p != '{')
abort ();
@@ -3421,7 +3421,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
return -1;
/* If any args were output, mark the last one for deletion
on failure. */
- if (argbuf_index != index)
+ if (argbuf_index != cur_index)
record_temp_file (argbuf[argbuf_index - 1], 0, 1);
break;
}