summaryrefslogtreecommitdiff
path: root/glx/glxdri2.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2012-07-12 19:09:15 +1000
committerDave Airlie <airlied@gmail.com>2012-07-13 11:21:01 +1000
commit743ccf6fa0a9a4579d6de6d10e2e6040640772d9 (patch)
treefe32d87a4ab2667f8cac8937923f3e2b12f70df4 /glx/glxdri2.c
parentd1a00c26becdc2490ab4660abf108eca09c30d23 (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.c2
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;