XQuartz: Fix get_proc_address signature
indirect.c:675:28: warning: incompatible pointer types passing 'glx_gpa_proc (*)(const char *)' to parameter of type 'glx_gpa_proc' (aka 'glx_func_ptr (*)(const char *)') [-Wincompatible-pointer-types,Semantic Issue] __glXsetGetProcAddress(&get_proc_address); ^~~~~~~~~~~~~~~~~ ../../../glx/glxserver.h:122:42: note: passing argument to parameter 'get_proc_address' here [Semantic Issue] void __glXsetGetProcAddress(glx_gpa_proc get_proc_address); ^ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
2e3ebec952
commit
ea80279e29
|
@ -643,10 +643,10 @@ __glFloorLog2(GLuint val)
|
|||
|
||||
static void *opengl_framework_handle;
|
||||
|
||||
static glx_gpa_proc
|
||||
static glx_func_ptr
|
||||
get_proc_address(const char *sym)
|
||||
{
|
||||
return (glx_gpa_proc) dlsym(opengl_framework_handle, sym);
|
||||
return (glx_func_ptr) dlsym(opengl_framework_handle, sym);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue