Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jun 2015 02:50:14 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283976 - head/lib/libdevstat
Message-ID:  <201506040250.t542oEhA052732@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo (ports committer)
Date: Thu Jun  4 02:50:13 2015
New Revision: 283976
URL: https://svnweb.freebsd.org/changeset/base/283976

Log:
  Remove unused variable and silence clang warnings.
  
  Differential Revision:	D2681
  Reviewed by:		rodrigc

Modified:
  head/lib/libdevstat/devstat.c

Modified: head/lib/libdevstat/devstat.c
==============================================================================
--- head/lib/libdevstat/devstat.c	Thu Jun  4 02:48:04 2015	(r283975)
+++ head/lib/libdevstat/devstat.c	Thu Jun  4 02:50:13 2015	(r283976)
@@ -334,7 +334,6 @@ devstat_getdevs(kvm_t *kd, struct statin
 {
 	int error;
 	size_t dssize;
-	int oldnumdevs;
 	long oldgeneration;
 	int retval = 0;
 	struct devinfo *dinfo;
@@ -348,7 +347,6 @@ devstat_getdevs(kvm_t *kd, struct statin
 		return(-1);
 	}
 
-	oldnumdevs = dinfo->numdevs;
 	oldgeneration = dinfo->generation;
 
 	if (kd == NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506040250.t542oEhA052732>