[Mesa-dev] [PATCH] mapi: Fix tls with shared/es-glapi on x86-64

Benjamin Franzke benjaminfranzke at googlemail.com
Sun Jun 12 08:21:17 PDT 2011


2011/6/11 Chia-I Wu <olvaffe at gmail.com>:
> I got this warning after applying the patch
>
>  ../../../src/mapi/mapi/entry_x86-64_tls.h:69:1: warning:
> ‘x86_64_current_tls’ used but never defined
>
> Maybe the function declaration should be decorated with "extern"?

Yeah, should work at least, just checked that caling the function works with
extern as well (with same results), only taking its address would fail again.

So I think we can leave it declared as extern. Updated patch attached.

Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mapi-Fix-tls-with-shared-es-glapi-on-x86-64.patch
Type: application/octet-stream
Size: 1099 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110612/9aecf35b/attachment.obj>


More information about the mesa-dev mailing list