[Mesa-dev] [PATCH] util: Fix -Wimplicit-function-declaration for ffs with GCC
Kai Wasserbäch
kai at dev.carbon-project.org
Fri Dec 9 03:59:29 PST 2011
AFAICS GCC was missed from the last #elif clause. With this patch
applied the warning is gone.
Signed-off-by: Kai Wasserbäch <kai at dev.carbon-project.org>
---
There certainly other warnings thrown during a build, but I saw this one
scrolling by, while checking on a build. Hence I went to fix it.
src/gallium/auxiliary/util/u_math.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index f908341..068a8d1 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -364,7 +364,7 @@ unsigned ffs( unsigned u )
return i;
}
-#elif defined(__MINGW32__) || defined(PIPE_OS_ANDROID)
+#elif defined(__MINGW32__) || defined(PIPE_OS_ANDROID) || defined(PIPE_CC_GCC)
#define ffs __builtin_ffs
#endif
--
1.7.7.3
More information about the mesa-dev
mailing list