Skip to content

Commit

Permalink
cpuinfo: silence compiler warnings on non-Intel CPU architectures.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 17, 2016
1 parent 66a36d5 commit db97c3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit db97c3d

Please sign in to comment.