svn commit: r296738 - stable/9/sbin/rcorder

Garrett Cooper ngie at FreeBSD.org
Sat Mar 12 18:47:30 UTC 2016


Author: ngie
Date: Sat Mar 12 18:47:28 2016
New Revision: 296738
URL: https://svnweb.freebsd.org/changeset/base/296738

Log:
  MFstable/10 r296736:
  
  MFC r295119:
  
  Remove `r_tmp` to fix a -Wunused-but-set-variable warning with gcc 4.9

Modified:
  stable/9/sbin/rcorder/rcorder.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sbin/   (props changed)
  stable/9/sbin/rcorder/   (props changed)

Modified: stable/9/sbin/rcorder/rcorder.c
==============================================================================
--- stable/9/sbin/rcorder/rcorder.c	Sat Mar 12 18:41:27 2016	(r296737)
+++ stable/9/sbin/rcorder/rcorder.c	Sat Mar 12 18:47:28 2016	(r296738)
@@ -702,7 +702,7 @@ keep_ok(filenode *fnode)
 void
 do_file(filenode *fnode)
 {
-	f_reqnode *r, *r_tmp;
+	f_reqnode *r;
 	f_provnode *p, *p_tmp;
 	provnode *pnode;
 	int was_set;	
@@ -729,13 +729,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;
 


More information about the svn-src-stable-9 mailing list