diff options
author | ngie <ngie@FreeBSD.org> | 2016-02-01 07:15:31 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-02-01 07:15:31 +0000 |
commit | b1ee4ad409df5a3440c668cf19bec883afa7310c (patch) | |
tree | 76c15d70518e348724bbe4b77dfb51478d513c6b /sbin | |
parent | d6e7c68d6ae5bb607a3fb1bba6f71b9bedf384cb (diff) | |
download | FreeBSD-src-b1ee4ad409df5a3440c668cf19bec883afa7310c.zip FreeBSD-src-b1ee4ad409df5a3440c668cf19bec883afa7310c.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/rcorder/rcorder.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/rcorder/rcorder.c b/sbin/rcorder/rcorder.c index 1d10a40..37faa24 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; |