cpuinfo: silence compiler warnings on non-Intel CPU architectures.

This commit is contained in:
Ryan C. Gordon 2016-11-17 01:41:56 -05:00
parent 66a36d5660
commit db97c3d3e8

View File

@ -362,6 +362,7 @@ CPU_haveAVX2(void)
{
if (CPU_OSSavesYMM && (CPU_CPUIDMaxFunction >= 7)) {
int a, b, c, d;
(void) a; (void) b; (void) c; (void) d; /* compiler warnings... */
cpuid(7, a, b, c, d);
return (b & 0x00000020);
}