Date: Sat, 12 Mar 2016 18:40:51 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r296736 - stable/10/sbin/rcorder Message-ID: <201603121840.u2CIepol064085@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Mar 12 18:40:51 2016 New Revision: 296736 URL: https://svnweb.freebsd.org/changeset/base/296736 Log: MFC r295119: Remove `r_tmp` to fix a -Wunused-but-set-variable warning with gcc 4.9 Modified: stable/10/sbin/rcorder/rcorder.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/rcorder/rcorder.c ============================================================================== --- stable/10/sbin/rcorder/rcorder.c Sat Mar 12 18:38:51 2016 (r296735) +++ stable/10/sbin/rcorder/rcorder.c Sat Mar 12 18:40:51 2016 (r296736) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603121840.u2CIepol064085>