devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=26caf1641ff7dbfc191338bbb948a1f2ca8fde20

commit 26caf1641ff7dbfc191338bbb948a1f2ca8fde20
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Jan 29 11:03:09 2019 -0500

    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<br/> test.<ps/>Lets see if this works.<ps/>עוד 
פסקה.";
 
    /* Walk the textblock using cursor_char_next */

-- 


Reply via email to