# HG changeset patch # User diego # Date 1277131569 0 # Node ID 91b713df588fd3348da426ee4e98a338c0c59f90 # Parent 435530ed1a33acf30aabced1c38a2b4df03cbd5b Surround conditionally used orig_lines variable declaration by #ifdefs. This avoids an unused variable warning when fribidi is not available. diff -r 435530ed1a33 -r 91b713df588f subreader.c --- 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);