[PATCH 5/5] glx/dri2: don't return NULL in a function with no return.

Dave Airlie airlied at gmail.com
Thu Jul 12 02:12:51 PDT 2012


Reported by gcc.

Signed-off-by: Dave Airlie <airlied at redhat.com>
Cc: Ian Romanick <idr at freedesktop.org>
---
 glx/glxdri2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index ddbcf69..b8261d4 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -518,7 +518,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;
-- 
1.7.10.4



More information about the xorg-devel mailing list