From 0d74618765b9934099f5f75b671e531ed1b15eb6 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sat, 12 Mar 2016 18:40:51 +0000 Subject: [PATCH] MFC r295119: Remove `r_tmp` to fix a -Wunused-but-set-variable warning with gcc 4.9 --- sbin/rcorder/rcorder.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sbin/rcorder/rcorder.c b/sbin/rcorder/rcorder.c index 1d10a40d961a..37faa2470e55 100644 --- a/sbin/rcorder/rcorder.c +++ b/sbin/rcorder/rcorder.c @@ -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;