From: Brian Paul Date: Tue, 27 Jul 2010 02:48:29 +0000 (-0600) Subject: util: fix unused function warning on non-x86 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b17ee335e3398cd1bbd26f5411e7ee6fb6839286;p=mesa.git util: fix unused function warning on non-x86 --- diff --git a/src/gallium/auxiliary/util/u_cpu_detect.c b/src/gallium/auxiliary/util/u_cpu_detect.c index 23d33af4e41..879643463fb 100644 --- a/src/gallium/auxiliary/util/u_cpu_detect.c +++ b/src/gallium/auxiliary/util/u_cpu_detect.c @@ -75,7 +75,10 @@ struct util_cpu_caps util_cpu_caps; +#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) static int has_cpuid(void); +#endif + #if defined(PIPE_ARCH_X86)