[Mesa-dev] [PATCH] util: Fix -Wimplicit-function-declaration for ffs with GCC
Jose Fonseca
jfonseca at vmware.com
Fri Dec 9 10:33:48 PST 2011
----- Original Message -----
> Dear mesa-dev list,
> Kai Wasserbäch schrieb am 09.12.2011 12:59:
> > 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(-)
> >
> > [...]
The system headers should normally define thi already.
"man ffs" says it is defined in strings.h
Does adding
#include <strings.h>
to u_math.h fixes the issue?
Jose
More information about the mesa-dev
mailing list