aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-28 17:40:43 -0400
committerDavid Robillard <d@drobilla.net>2022-05-28 17:40:43 -0400
commitf41335eb6559bd3da64470ffe32a0e68899c11bd (patch)
tree58558163c665474f7b045670d6a8fd7eb8c74a2e
parent0d7e9777ccf8521bd6f828104ed4f64db470f406 (diff)
downloadpugl-f41335eb6559bd3da64470ffe32a0e68899c11bd.tar.gz
pugl-f41335eb6559bd3da64470ffe32a0e68899c11bd.tar.bz2
pugl-f41335eb6559bd3da64470ffe32a0e68899c11bd.zip
Omit cursor_names if XCursor is not available
This avoids a Wunused-const-variable warning with GCC.
-rw-r--r--src/x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x11.c b/src/x11.c
index 1b83d98..cd3fbb0 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -67,6 +67,7 @@ enum WmClientStateMessageAction {
#define NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_DOWN + 1u)
+#ifdef HAVE_XCURSOR
static const char* const cursor_names[NUM_CURSORS] = {
"default", // ARROW
"text", // CARET
@@ -76,6 +77,7 @@ static const char* const cursor_names[NUM_CURSORS] = {
"sb_h_double_arrow", // LEFT_RIGHT
"sb_v_double_arrow" // UP_DOWN
};
+#endif
static bool
initXSync(PuglWorldInternals* const impl)