diff options
author | Eric Anholt <[email protected]> | 2012-09-25 10:02:06 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-09-28 14:00:24 -0700 |
commit | 7ae332dc6d41f89faf5644ce576b3e8b6e5e194e (patch) | |
tree | 4afb7ebe866786362599370213de952fb339527d | |
parent | 66159f94a5ce00b2e7c06766d7d1ecc1208c2f69 (diff) |
glx: Fix compile warnings since 99fee476a102be898a1a093c037e06382f90a5b9
_glapi_table is a struct full of named function pointers, while the generated
code just wants to treat it as an array of function pointers. Cast to avoid
the compiler warning.
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_send.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py index 34aa2c31f4e..0e4b420fdb2 100644 --- a/src/mapi/glapi/gen/glX_proto_send.py +++ b/src/mapi/glapi/gen/glX_proto_send.py @@ -423,7 +423,7 @@ __indirect_get_proc_address(const char *name) print '' print '#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)' print ' if (gc->isDirect) {' - print ' const _glapi_proc *const disp_table = GET_DISPATCH();' + print ' const _glapi_proc *const disp_table = (_glapi_proc *)GET_DISPATCH();' print ' PFNGL%sPROC p =' % (name.upper()) print ' (PFNGL%sPROC) disp_table[%d];' % (name.upper(), func.offset) print ' %sp(%s);' % (ret_string, func.get_called_parameter_string()) |