[mojosetup] miniz: Fix some 'not guarded statement' warnings.

Francois Gouget fgouget at codeweavers.com
Mon Aug 10 13:19:20 EDT 2020


gcc -Wmisleading-indentation does not like it when there are multiple
for loops on one line with no curly braces in sight. That's also not
very readable so reformat to put one for loop per line.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 miniz.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/miniz.h b/miniz.h
index 0c7f245..84f6235 100644
--- a/miniz.h
+++ b/miniz.h
@@ -314,7 +314,10 @@ static tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_
       {
         mz_uint8 *p = r->m_tables[0].m_code_size; mz_uint i;
         r->m_table_sizes[0] = 288; r->m_table_sizes[1] = 32; TINFL_MEMSET(r->m_tables[1].m_code_size, 5, 32);
-        for ( i = 0; i <= 143; ++i) *p++ = 8; for ( ; i <= 255; ++i) *p++ = 9; for ( ; i <= 279; ++i) *p++ = 7; for ( ; i <= 287; ++i) *p++ = 8;
+        for ( i = 0; i <= 143; ++i) *p++ = 8;
+        for ( ; i <= 255; ++i) *p++ = 9;
+        for ( ; i <= 279; ++i) *p++ = 7;
+        for ( ; i <= 287; ++i) *p++ = 8;
       }
       else
       {
-- 
2.20.1



More information about the mojosetup mailing list