Bladeren bron

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

Ryan C. Gordon 8 jaren geleden
bovenliggende
commit
db97c3d3e8
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      src/cpuinfo/SDL_cpuinfo.c

+ 1 - 0
src/cpuinfo/SDL_cpuinfo.c

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