mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-07 18:20:14 +01:00
__glGetProcAddress: explictly cast function pointers to void *
Fixes Solaris Studio compiler warning & error: "glxext.c", line 557: warning: assignment type mismatch: pointer to void "=" pointer to function(void) returning void "glxext.c", line 559: error: operands have incompatible types: pointer to void ":" pointer to function(void) returning void Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
76eedb039f
commit
08c7df9b08
1 changed files with 2 additions and 2 deletions
|
|
@ -554,9 +554,9 @@ __glXsetGetProcAddress(glx_gpa_proc get_proc_address)
|
|||
|
||||
void *__glGetProcAddress(const char *proc)
|
||||
{
|
||||
void *ret = _get_proc_address(proc);
|
||||
void *ret = (void *) _get_proc_address(proc);
|
||||
|
||||
return ret ? ret : NoopDDA;
|
||||
return ret ? ret : (void *) NoopDDA;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue