svn commit: r298841 - head/lib/libkvm
Garrett Cooper
ngie at FreeBSD.org
Sat Apr 30 09:31:02 UTC 2016
Author: ngie
Date: Sat Apr 30 09:31:01 2016
New Revision: 298841
URL: https://svnweb.freebsd.org/changeset/base/298841
Log:
Remove a -Wunused-but-set-variable variable -- `pa`
Reported by: gcc 5.x
Sponsored by: EMC / Isilon Storage Division
Modified:
head/lib/libkvm/kvm_sparc64.c
Modified: head/lib/libkvm/kvm_sparc64.c
==============================================================================
--- head/lib/libkvm/kvm_sparc64.c Sat Apr 30 09:21:13 2016 (r298840)
+++ head/lib/libkvm/kvm_sparc64.c Sat Apr 30 09:31:01 2016 (r298841)
@@ -134,7 +134,6 @@ _sparc64_initvtop(kvm_t *kd)
struct sparc64_dump_reg *regs;
struct vmstate *vm;
size_t regsz;
- uint64_t pa;
int i;
vm = (struct vmstate *)_kvm_malloc(kd, sizeof(*vm));
@@ -151,7 +150,6 @@ _sparc64_initvtop(kvm_t *kd)
hdr.dh_tsb_size = be64toh(hdr.dh_tsb_size);
hdr.dh_tsb_mask = be64toh(hdr.dh_tsb_mask);
hdr.dh_nregions = be32toh(hdr.dh_nregions);
- pa = hdr.dh_tsb_pa;
regsz = hdr.dh_nregions * sizeof(*regs);
regs = _kvm_malloc(kd, regsz);
More information about the svn-src-head
mailing list