diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2012-10-22 16:08:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-23 12:28:55 +0200 |
commit | 0a6691027db87ef30ee4010740feb7bc9c753bd1 (patch) | |
tree | 0077439e879231470a611d5bfe24012fed6c7461 /src | |
parent | 202ac1cbe7d7e2a30b3c2384ce8d62655ba019c0 (diff) |
Fix warning about missing return value in XCB native interface.
Change-Id: If311211076c05ed8d0fb62a9ff1129b93a813850
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbnativeinterface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<QEGLPlatformContext *>(context->handle()); return eglPlatformContext->eglContext(); +#else + return 0; #endif } |