[Mesa-dev] [PATCH] util: Fix -Wimplicit-function-declaration for ffs with GCC
kai at dev.carbon-project.org
Fri Dec 9 11:13:07 PST 2011
Jose Fonseca schrieb am 09.12.2011 19:33:
> ----- 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?
yes, that seems to fix this too.
Kai Wasserbäch (Kai Wasserbaech)
E-Mail: kai at dev.carbon-project.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 665 bytes
Desc: OpenPGP digital signature
More information about the mesa-dev