Date: Fri, 27 Dec 2013 12:15:54 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259942 - head/sys/amd64/vmm/intel Message-ID: <201312271215.rBRCFsat019184@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Fri Dec 27 12:15:53 2013 New Revision: 259942 URL: http://svnweb.freebsd.org/changeset/base/259942 Log: In sys/amd64/vmm/intel/vmx.c, silence a (incorrect) gcc warning about regval possibly being used uninitialized. Reviewed by: neel Modified: head/sys/amd64/vmm/intel/vmx.c Modified: head/sys/amd64/vmm/intel/vmx.c ============================================================================== --- head/sys/amd64/vmm/intel/vmx.c Fri Dec 27 11:10:32 2013 (r259941) +++ head/sys/amd64/vmm/intel/vmx.c Fri Dec 27 12:15:53 2013 (r259942) @@ -1114,6 +1114,7 @@ vmx_emulate_cr_access(struct vmx *vmx, i if (cr != 0 && cr != 4) return (UNHANDLED); + regval = 0; /* silence gcc */ vmxctx = &vmx->ctx[vcpu]; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312271215.rBRCFsat019184>