From 36275929af4c247d27ce157da0914b9d39dc3725 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Mon, 17 Feb 2020 15:36:03 +0900 Subject: [PATCH] els_cursor: Fix a compiler warning for Wayland support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: `_curosors` is not used when Elementary is compiled for Wayland. It Fixes a compiler warning. ``` ../src/lib/elementary/els_cursor.c:46:26: warning: ‘_cursors’ defined but not used [-Wunused-variable] static struct _Cursor_Id _cursors[] = ``` Test Plan: meson build -Dx11=false -Dwl=true Reviewers: zmike, Hermet, Jaehyun_Cho Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11360 --- src/lib/elementary/els_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/els_cursor.c b/src/lib/elementary/els_cursor.c index eeb1d18f85..4b3622a39e 100644 --- a/src/lib/elementary/els_cursor.c +++ b/src/lib/elementary/els_cursor.c @@ -42,6 +42,7 @@ struct _Cursor_Id # define CURSOR(_name, _id, _cid) { _name } #endif +#if defined(HAVE_ELEMENTARY_X) || defined(HAVE_ELEMENTARY_COCOA) || defined(HAVE_ELEMENTARY_WIN32) /* Please keep order in sync with Ecore_X_Cursor.h values! */ static struct _Cursor_Id _cursors[] = { @@ -124,7 +125,6 @@ static struct _Cursor_Id _cursors[] = CURSOR(ELM_CURSOR_XTERM , XTERM , ECORE_COCOA_CURSOR_IBEAM) }; -#if defined(HAVE_ELEMENTARY_X) || defined(HAVE_ELEMENTARY_COCOA) || defined(HAVE_ELEMENTARY_WIN32) static const int _cursors_count = sizeof(_cursors)/sizeof(struct _Cursor_Id); #endif