# HG changeset patch # User Matti Hamalainen # Date 1530116004 -10800 # Node ID be7492a121f0c4a167c3f625aa656dafe51bb03a # Parent f0225a52afceb82f2fb235e55aad0809ef1d1582 Define variable at start of block. diff -r f0225a52afce -r be7492a121f0 tools/libgfx.c --- a/tools/libgfx.c Wed Jun 27 19:09:25 2018 +0300 +++ b/tools/libgfx.c Wed Jun 27 19:13:24 2018 +0300 @@ -2014,6 +2014,7 @@ { Uint8 data = buf[offs]; int next_mode; + BOOL flush; if (data == prev) { @@ -2025,7 +2026,7 @@ next_mode = DMODE_LIT; } - BOOL flush = offs - l_offs >= 126 || r_count >= 126; + flush = offs - l_offs >= 126 || r_count >= 126; if ((next_mode != mode || flush) && !dmIFFEncodeByteRun1Flush(fp, mode, flush, &l_offs, offs, buf, prev, &r_count)) return FALSE;