From d09cc295785be55032532231f65b9c73eaf4a8ed Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 21 Jun 2010 14:46:09 +0000 Subject: [PATCH] subreader.c: place conditionally declaration under #ifdef Surround conditionally used orig_lines variable declaration by #ifdefs. This avoids an unused variable warning when fribidi is not available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31519 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subreader.c b/subreader.c index 63fed5d156..772d58c79c 100644 --- a/subreader.c +++ b/subreader.c @@ -2315,7 +2315,9 @@ void sub_add_text(subtitle *sub, const char *txt, int len, double endpts) { int double_newline = 1; // ignore newlines at the beginning int i, pos; char *buf; +#ifdef CONFIG_FRIBIDI int orig_lines = sub->lines; +#endif if (sub->lines >= SUB_MAX_TEXT) return; pos = 0; buf = malloc(MAX_SUBLINE + 1);