From f21140f3dc588043db752bf2c6431c146cb281c9 Mon Sep 17 00:00:00 2001 From: Frankenstone Date: Wed, 13 Mar 2019 17:57:52 +0100 Subject: [PATCH] fix compiler warning, thx DboxOldie --- src/driver/fontrenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/fontrenderer.cpp b/src/driver/fontrenderer.cpp index b0e00671c..54ffe5d9e 100644 --- a/src/driver/fontrenderer.cpp +++ b/src/driver/fontrenderer.cpp @@ -423,7 +423,7 @@ static std::string fribidi_shape_char(const char * text) if (fribidi_log2vis(logical, rtl_len, &fribidi_chartype, visual, NULL, NULL, NULL)) { // removes bidirectional marks - fribidi_remove_bidi_marks(visual, rtl_len, NULL, NULL, NULL); + FriBidiStrIndex __attribute__ ((unused)) idx = fribidi_remove_bidi_marks(visual, rtl_len, NULL, NULL, NULL); rtl_text = (char *)alloca(sizeof(char)*(rtl_len * 4 + 1)); fribidi_unicode_to_charset(fribidi_charset, visual, rtl_len, rtl_text);