diff subreader.c @ 31453:91b713df588f

Surround conditionally used orig_lines variable declaration by #ifdefs. This avoids an unused variable warning when fribidi is not available.
author diego
date Mon, 21 Jun 2010 14:46:09 +0000
parents 17db8e56de4c
children dc26022e9c27
line wrap: on
line diff
--- a/subreader.c	Mon Jun 21 14:43:08 2010 +0000
+++ b/subreader.c	Mon Jun 21 14:46:09 2010 +0000
@@ -2302,7 +2302,9 @@
   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);