Commit ed846da3 by Doug Evans

(do_spec_1, case 'W'): Rename local `index' to `cur_index' to avoid warning

on solaris.

From-SVN: r11030
parent 3c35520e
...@@ -3412,7 +3412,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -3412,7 +3412,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
case 'W': case 'W':
{ {
int index = argbuf_index; int cur_index = argbuf_index;
/* Handle the {...} following the %W. */ /* Handle the {...} following the %W. */
if (*p != '{') if (*p != '{')
abort (); abort ();
...@@ -3421,7 +3421,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -3421,7 +3421,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
return -1; return -1;
/* If any args were output, mark the last one for deletion /* If any args were output, mark the last one for deletion
on failure. */ on failure. */
if (argbuf_index != index) if (argbuf_index != cur_index)
record_temp_file (argbuf[argbuf_index - 1], 0, 1); record_temp_file (argbuf[argbuf_index - 1], 0, 1);
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment