diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
commit | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (patch) | |
tree | 4c2fa595d7209694dd30b0e0b349a0a44116d712 /apps/plugins/imageviewer/png | |
parent | 08fb3f65745a237e2c1eae55d856ff27702246e5 (diff) | |
download | rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.tar.gz rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.zip |
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
Diffstat (limited to 'apps/plugins/imageviewer/png')
-rw-r--r-- | apps/plugins/imageviewer/png/png_decoder.c | 3 |
1 files changed, 0 insertions, 3 deletions
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) | |||
1675 | 1675 | ||
1676 | /* for unknown chunk order */ | 1676 | /* for unknown chunk order */ |
1677 | bool unknown = false; | 1677 | bool unknown = false; |
1678 | uint8_t critical_pos = 1; /*1 = after IHDR, 2 = after PLTE, 3 = after IDAT*/ | ||
1679 | 1678 | ||
1680 | if (decoder->file_size == 0 || in == NULL) | 1679 | if (decoder->file_size == 0 || in == NULL) |
1681 | { | 1680 | { |
@@ -1739,7 +1738,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder) | |||
1739 | /* copy compressed data */ | 1738 | /* copy compressed data */ |
1740 | memcpy(idat+idat_size, data, chunkLength * sizeof(uint8_t)); | 1739 | memcpy(idat+idat_size, data, chunkLength * sizeof(uint8_t)); |
1741 | idat_size += chunkLength; | 1740 | idat_size += chunkLength; |
1742 | critical_pos = 3; | ||
1743 | } | 1741 | } |
1744 | /*IEND chunk*/ | 1742 | /*IEND chunk*/ |
1745 | else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_IEND)) | 1743 | else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_IEND)) |
@@ -1765,7 +1763,6 @@ static void decodeGeneric(LodePNG_Decoder* decoder) | |||
1765 | decoder->infoPng.color.palette[(i<<2) | 2] = data[pos++]; /*B*/ | 1763 | decoder->infoPng.color.palette[(i<<2) | 2] = data[pos++]; /*B*/ |
1766 | decoder->infoPng.color.palette[(i<<2) | 3] = 255; /*alpha*/ | 1764 | decoder->infoPng.color.palette[(i<<2) | 3] = 255; /*alpha*/ |
1767 | } | 1765 | } |
1768 | critical_pos = 2; | ||
1769 | } | 1766 | } |
1770 | /*palette transparency chunk (tRNS)*/ | 1767 | /*palette transparency chunk (tRNS)*/ |
1771 | else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_tRNS)) | 1768 | else if (LodePNG_chunk_type_equals(chunk, PNG_CHUNK_tRNS)) |