summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-08-13 22:34:28 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-23 18:05:31 +0200
commitc879cf0dcf76d1f1ea29cf0fde671a9899c3d278 (patch)
treef1d8c9fde2cb9684cfea54fdf6ceaae163b62659 /src/plugins/platforms/xcb
parent75bf40ae13cd997c019e90e6241aa2577568203c (diff)
xcb: fix unused static warning
The variable ptrXcursorLibraryLoadCursor is only used in code wrapped in XCB_USE_XLIB. Change-Id: If0b4997ac6e80a3709263d9793d1ca0dfd5907f3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r--src/plugins/platforms/xcb/qxcbcursor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbcursor.cpp b/src/plugins/platforms/xcb/qxcbcursor.cpp
index fefca06da7..454ea0294a 100644
--- a/src/plugins/platforms/xcb/qxcbcursor.cpp
+++ b/src/plugins/platforms/xcb/qxcbcursor.cpp
@@ -54,7 +54,9 @@
QT_BEGIN_NAMESPACE
typedef int (*PtrXcursorLibraryLoadCursor)(void *, const char *);
+#ifdef XCB_USE_XLIB
static PtrXcursorLibraryLoadCursor ptrXcursorLibraryLoadCursor = 0;
+#endif
static xcb_font_t cursorFont = 0;
static int cursorCount = 0;