From b05166e3d2c17e62d8761c46c4643e61890d49eb Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 22 Aug 2019 22:26:26 -0700 Subject: [PATCH] glx: Fix up glXQueryGLXPbufferSGIX on macOS. Fix this build error on macOS. ../src/glx/apple/glx_empty.c:158:4: error: void function 'glXQueryGLXPbufferSGIX' should not return a value [-Wreturn-type] return 0; ^ ~ Fixes: 3dd299c3d5b8 ("glx: Sync with Khronos") Signed-off-by: Vinson Lee Reviewed-by: Eric Engestrom Reviewed-by: Adam Jackson --- src/glx/apple/glx_empty.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/glx/apple/glx_empty.c b/src/glx/apple/glx_empty.c index 1b3abca6daa..d3dbda27199 100644 --- a/src/glx/apple/glx_empty.c +++ b/src/glx/apple/glx_empty.c @@ -155,7 +155,6 @@ glXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable, (void) drawable; (void) attribute; (void) value; - return 0; } _X_EXPORT GLXDrawable -- 2.30.2