[syslinux:master] com32/lib/jpeg/tinyjpeg.c: remove variables set but not used
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Wed Mar 16 13:18:43 PDT 2011
Commit-ID: 88dc082230617745fc872ca093a3b1b4701f0f4e
Gitweb: http://syslinux.zytor.com/commit/88dc082230617745fc872ca093a3b1b4701f0f4e
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700
com32/lib/jpeg/tinyjpeg.c: remove variables set but not used
gcc 4.6 warns on variables set but not used, so remove them.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
com32/lib/jpeg/tinyjpeg.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/com32/lib/jpeg/tinyjpeg.c b/com32/lib/jpeg/tinyjpeg.c
index 3c6070f..2927b71 100644
--- a/com32/lib/jpeg/tinyjpeg.c
+++ b/com32/lib/jpeg/tinyjpeg.c
@@ -332,7 +332,6 @@ static void build_huffman_table(const unsigned char *bits, const unsigned char *
unsigned int i, j, code, code_size, val, nbits;
unsigned char huffsize[HUFFMAN_BITS_SIZE+1], *hz;
unsigned int huffcode[HUFFMAN_BITS_SIZE+1], *hc;
- int next_free_entry;
/*
* Build a temp array
@@ -371,7 +370,6 @@ static void build_huffman_table(const unsigned char *bits, const unsigned char *
/*
* Build the lookup table, and the slowtable if needed.
*/
- next_free_entry = -1;
for (i=0; huffsize[i]; i++)
{
val = vals[i];
@@ -442,8 +440,8 @@ static void build_default_huffman_tables(struct jdec_private *priv)
static void print_SOF(const unsigned char *stream)
{
- int width, height, nr_components, precision;
#if DEBUG
+ int width, height, nr_components, precision;
const char *nr_components_to_string[] = {
"????",
"Grayscale",
@@ -451,7 +449,6 @@ static void print_SOF(const unsigned char *stream)
"YCbCr",
"CYMK"
};
-#endif
precision = stream[2];
height = be16_to_cpu(stream+3);
@@ -463,6 +460,8 @@ static void print_SOF(const unsigned char *stream)
width, height,
nr_components, nr_components_to_string[nr_components],
precision);
+#endif
+ (void)stream;
}
/*******************************************************************************
More information about the Syslinux-commits
mailing list