From 0a6691027db87ef30ee4010740feb7bc9c753bd1 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 22 Oct 2012 16:08:44 +0200 Subject: Fix warning about missing return value in XCB native interface. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If311211076c05ed8d0fb62a9ff1129b93a813850 Reviewed-by: Samuel Rødal --- src/plugins/platforms/xcb/qxcbnativeinterface.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp index 40f39843e5..2a36fb7369 100644 --- a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp +++ b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp @@ -186,6 +186,8 @@ void * QXcbNativeInterface::eglContextForContext(QOpenGLContext *context) #if defined(XCB_USE_EGL) QEGLPlatformContext *eglPlatformContext = static_cast(context->handle()); return eglPlatformContext->eglContext(); +#else + return 0; #endif } -- cgit v1.2.3