[Mesa-dev] [PATCH] Fix 32bit compilation with -Werror=implicit-function-declaration
Pali Rohár
pali.rohar at gmail.com
Mon Apr 13 12:49:21 PDT 2015
On Monday 13 April 2015 21:26:32 Pali Rohár wrote:
> File glapi_entrypoint.c calls memcpy() function, but does not
> include string.h header. So compilation can fail at error:
> implicit declaration of function 'memcpy'.
>
> --- src/mapi/glapi/glapi_entrypoint.c 2015-04-13
> 21:11:09.000000000 +0200 +++
> src/mapi/glapi/glapi_entrypoint.c 2015-04-13
> 21:11:55.284118513 +0200 @@ -33,6 +33,7 @@
> #include "glapi/glapi_priv.h"
> #include "u_execmem.h"
>
> +#include <string.h>
>
> #ifdef USE_X86_ASM
This problem is caused by commit:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fbbd60c1da4467683d93540c64164ad337ce454
which removes #include <string.h> from glapi_priv.h file.
--
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150413/826752cc/attachment.sig>
More information about the mesa-dev
mailing list