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 14b0588845
commit d21e46ca20

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);
}