From c879cf0dcf76d1f1ea29cf0fde671a9899c3d278 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 13 Aug 2012 22:34:28 +0200 Subject: xcb: fix unused static warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable ptrXcursorLibraryLoadCursor is only used in code wrapped in XCB_USE_XLIB. Change-Id: If0b4997ac6e80a3709263d9793d1ca0dfd5907f3 Reviewed-by: Friedemann Kleint Reviewed-by: Samuel Rødal --- src/plugins/platforms/xcb/qxcbcursor.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3