summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-26 20:48:29 -0600
committerBrian Paul <brianp@vmware.com>2010-07-26 20:48:29 -0600
commitb17ee335e3398cd1bbd26f5411e7ee6fb6839286 (patch)
treea4841fbf000a7c4011f5b0aa3e10c577c9c8ef63
parent5403ca79b225605c79f49866a6497c97da53be3b (diff)
util: fix unused function warning on non-x86
-rw-r--r--src/gallium/auxiliary/util/u_cpu_detect.c3
1 files changed, 3 insertions, 0 deletions
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)