Remove r_tmp to fix a -Wunused-but-set-variable warning with gcc 4.9

MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
ngie 2016-02-01 07:15:31 +00:00
parent d6e7c68d6a
commit b1ee4ad409

View File

@ -701,7 +701,7 @@ keep_ok(filenode *fnode)
static void
do_file(filenode *fnode)
{
f_reqnode *r, *r_tmp;
f_reqnode *r;
f_provnode *p, *p_tmp;
provnode *pnode;
int was_set;
@ -728,13 +728,8 @@ do_file(filenode *fnode)
*/
r = fnode->req_list;
while (r != NULL) {
r_tmp = r;
satisfy_req(r, fnode->filename);
r = r->next;
#if 0
if (was_set == 0)
free(r_tmp);
#endif
}
fnode->req_list = NULL;