Commit db97c3d3e8d670ee3cf9e6d506b38efa6d12b2f4

Ryan C. Gordon 2016-11-17T01:41:56

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

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c
index 38aa633..f98cf76 100644
--- a/src/cpuinfo/SDL_cpuinfo.c
+++ b/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);
     }