Mesa (gallium-0.1): rtasm: Silence `static function not used' warning.

Michał Król michal at kemper.freedesktop.org
Fri Apr 10 07:04:42 UTC 2009


Module: Mesa
Branch: gallium-0.1
Commit: 9f87810614985413355b76b482200e3f4aee394f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f87810614985413355b76b482200e3f4aee394f

Author: Michal Krol <michal at vmware.com>
Date:   Fri Apr 10 09:00:57 2009 +0200

rtasm: Silence `static function not used' warning.

---

 src/gallium/auxiliary/rtasm/rtasm_cpu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_cpu.c b/src/gallium/auxiliary/rtasm/rtasm_cpu.c
index 5499018..29c544c 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_cpu.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_cpu.c
@@ -30,6 +30,7 @@
 #include "rtasm_cpu.h"
 
 
+#if defined(PIPE_ARCH_X86)
 static boolean rtasm_sse_enabled(void)
 {
    static boolean firsttime = 1;
@@ -43,6 +44,7 @@ static boolean rtasm_sse_enabled(void)
    }
    return enabled;
 }
+#endif
 
 int rtasm_cpu_has_sse(void)
 {




More information about the mesa-commit mailing list