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:
parent
97e210d727
commit
26caf1641f
|
@ -109,7 +109,9 @@ EFL_START_TEST(evas_textblock_cursor)
|
||||||
Evas_Coord x, y, w, h;
|
Evas_Coord x, y, w, h;
|
||||||
size_t i, j, len;
|
size_t i, j, len;
|
||||||
Evas_Coord nw, nh;
|
Evas_Coord nw, nh;
|
||||||
|
#ifdef HAVE_FRIBIDI
|
||||||
Evas_BiDi_Direction dir;
|
Evas_BiDi_Direction dir;
|
||||||
|
#endif
|
||||||
const char *buf = "This is a<br/> test.<ps/>Lets see if this works.<ps/>עוד פסקה.";
|
const char *buf = "This is a<br/> test.<ps/>Lets see if this works.<ps/>עוד פסקה.";
|
||||||
|
|
||||||
/* Walk the textblock using cursor_char_next */
|
/* Walk the textblock using cursor_char_next */
|
||||||
|
|
Loading…
Reference in New Issue