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.
This commit is contained in:
Chris Michael 2019-01-29 11:03:09 -05:00
parent 97e210d727
commit 26caf1641f
1 changed files with 2 additions and 0 deletions

View File

@ -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 */