Date: Fri, 20 Jan 2012 01:39:16 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r230360 - head/usr.sbin/cpucontrol Message-ID: <201201200139.q0K1dGUQ016988@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Fri Jan 20 01:39:16 2012 New Revision: 230360 URL: http://svn.freebsd.org/changeset/base/230360 Log: Fix warning when compiling with gcc46: error: variable 'flags' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days Modified: head/usr.sbin/cpucontrol/via.c Modified: head/usr.sbin/cpucontrol/via.c ============================================================================== --- head/usr.sbin/cpucontrol/via.c Fri Jan 20 01:39:08 2012 (r230359) +++ head/usr.sbin/cpucontrol/via.c Fri Jan 20 01:39:16 2012 (r230360) @@ -82,7 +82,7 @@ via_update(const char *dev, const char * unsigned int i; size_t payload_size; via_fw_header_t *fw_header; - uint32_t signature, flags; + uint32_t signature; int32_t revision; void *fw_data; size_t data_size, total_size; @@ -121,7 +121,6 @@ via_update(const char *dev, const char * /* * MSR_IA32_PLATFORM_ID contains flag in BCD in bits 52-50. */ - flags = 1 << ((msrargs.data >> 50) & 7); msrargs.msr = MSR_BIOS_SIGN; error = ioctl(devfd, CPUCTL_RDMSR, &msrargs); if (error < 0) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201200139.q0K1dGUQ016988>