mesa/x86: put code in braces to silence declarations after code warning
authorBrian Paul <brianp@vmware.com>
Mon, 4 Aug 2014 20:29:04 +0000 (14:29 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 4 Aug 2014 21:22:48 +0000 (15:22 -0600)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/x86/common_x86.c

index b401c354a33ebd2c20a958ed05155caec4cce1ac..2a936a473ef322533a8960f0d29ce296f272be8b 100644 (file)
@@ -343,16 +343,18 @@ _mesa_get_x86_features(void)
 #endif
 
 #elif defined(USE_X86_64_ASM)
-   unsigned int uninitialized_var(eax), uninitialized_var(ebx),
-                uninitialized_var(ecx), uninitialized_var(edx);
+   {
+      unsigned int uninitialized_var(eax), uninitialized_var(ebx),
+                   uninitialized_var(ecx), uninitialized_var(edx);
 
-   /* Always available on x86-64. */
-   _mesa_x86_cpu_features |= X86_FEATURE_XMM | X86_FEATURE_XMM2;
+      /* Always available on x86-64. */
+      _mesa_x86_cpu_features |= X86_FEATURE_XMM | X86_FEATURE_XMM2;
 
-   __get_cpuid(1, &eax, &ebx, &ecx, &edx);
+      __get_cpuid(1, &eax, &ebx, &ecx, &edx);
 
-   if (ecx & bit_SSE4_1)
-      _mesa_x86_cpu_features |= X86_FEATURE_SSE4_1;
+      if (ecx & bit_SSE4_1)
+         _mesa_x86_cpu_features |= X86_FEATURE_SSE4_1;
+   }
 #endif /* USE_X86_64_ASM */
 
    (void) detection_debug;