summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-02-17 15:36:03 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-17 15:36:03 +0900
commit36275929af4c247d27ce157da0914b9d39dc3725 (patch)
treee1e35d7ac6317aef0f9d9f83d54adb574540dfb7
parent225b8f3ad83635efcea2852cd24307a436f1f9b1 (diff)
els_cursor: Fix a compiler warning for Wayland support
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
-rw-r--r--src/lib/elementary/els_cursor.c2
1 files changed, 1 insertions, 1 deletions
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
42# define CURSOR(_name, _id, _cid) { _name } 42# define CURSOR(_name, _id, _cid) { _name }
43#endif 43#endif
44 44
45#if defined(HAVE_ELEMENTARY_X) || defined(HAVE_ELEMENTARY_COCOA) || defined(HAVE_ELEMENTARY_WIN32)
45/* Please keep order in sync with Ecore_X_Cursor.h values! */ 46/* Please keep order in sync with Ecore_X_Cursor.h values! */
46static struct _Cursor_Id _cursors[] = 47static struct _Cursor_Id _cursors[] =
47{ 48{
@@ -124,7 +125,6 @@ static struct _Cursor_Id _cursors[] =
124 CURSOR(ELM_CURSOR_XTERM , XTERM , ECORE_COCOA_CURSOR_IBEAM) 125 CURSOR(ELM_CURSOR_XTERM , XTERM , ECORE_COCOA_CURSOR_IBEAM)
125}; 126};
126 127
127#if defined(HAVE_ELEMENTARY_X) || defined(HAVE_ELEMENTARY_COCOA) || defined(HAVE_ELEMENTARY_WIN32)
128static const int _cursors_count = sizeof(_cursors)/sizeof(struct _Cursor_Id); 128static const int _cursors_count = sizeof(_cursors)/sizeof(struct _Cursor_Id);
129#endif 129#endif
130 130