diff options
author | Dave Airlie <airlied@gmail.com> | 2012-07-12 19:09:15 +1000 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2012-07-13 11:21:01 +1000 |
commit | 743ccf6fa0a9a4579d6de6d10e2e6040640772d9 (patch) | |
tree | fe32d87a4ab2667f8cac8937923f3e2b12f70df4 /glx/glxdri2.c | |
parent | d1a00c26becdc2490ab4660abf108eca09c30d23 (diff) |
glx/dri2: don't return NULL in a function with no return.
Reported by gcc.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r-- | glx/glxdri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 897eb5953..4e00673ac 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -521,7 +521,7 @@ create_driver_context(__GLXDRIcontext * context, &major_ver, &minor_ver, &flags, &api, &reset, (unsigned *) error)) - return NULL; + return; ctx_attribs[num_ctx_attribs++] = __DRI_CTX_ATTRIB_MAJOR_VERSION; ctx_attribs[num_ctx_attribs++] = major_ver; |