From f7c45941344ecfbcdd5d9b311b61573d37c6ef58 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 1 May 2011 13:48:28 +0000 Subject: Fix further 'variable set but not used' warnings reported from GCC 4.6.0. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29809 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/imageviewer/png/png_decoder.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'apps/plugins/imageviewer/png/png_decoder.c') diff --git a/apps/plugins/imageviewer/png/png_decoder.c b/apps/plugins/imageviewer/png/png_decoder.c index 1349d75db6..bae1fe3321 100644 --- a/apps/plugins/imageviewer/png/png_decoder.c +++ b/apps/plugins/imageviewer/png/png_decoder.c @@ -1675,7 +1675,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder) /* for unknown chunk order */ bool unknown = false; - uint8_t critical_pos = 1; /*1 = after IHDR, 2 = after PLTE, 3 = after IDAT*/ if (decoder->file_size == 0 || in == NULL) { @@ -1739,7 +1738,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder) /* copy compressed data */ memcpy(idat+idat_size, data, chunkLength * sizeof(uint8_t)); idat_size += chunkLength; - critical_pos = 3; } /*IEND chunk*/ else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_IEND)) @@ -1765,7 +1763,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder) decoder->infoPng.color.palette[(i<<2) | 2] = data[pos++]; /*B*/ decoder->infoPng.color.palette[(i<<2) | 3] = 255; /*alpha*/ } - critical_pos = 2; } /*palette transparency chunk (tRNS)*/ else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_tRNS)) -- cgit v1.2.3