From 26caf1641ff7dbfc191338bbb948a1f2ca8fde20 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 29 Jan 2019 11:03:09 -0500 Subject: [PATCH] evas_test_textblock: Fix unused variable warning In evas_textblock_cursor test, the variable 'dir' is only used if HAVE_FRIBIDI is defined. If that is not defined, then we get an unused variable warning when compiling. This patch wraps the variable around an #ifdef so that it does not get declared without FRIBIDI support. --- src/tests/evas/evas_test_textblock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c index ad6d806331..776713c912 100644 --- a/src/tests/evas/evas_test_textblock.c +++ b/src/tests/evas/evas_test_textblock.c @@ -109,7 +109,9 @@ EFL_START_TEST(evas_textblock_cursor) Evas_Coord x, y, w, h; size_t i, j, len; Evas_Coord nw, nh; +#ifdef HAVE_FRIBIDI Evas_BiDi_Direction dir; +#endif const char *buf = "This is a
test.Lets see if this works.עוד פסקה."; /* Walk the textblock using cursor_char_next */