Skip to content

Commit

Permalink
com32/lib/jpeg/tinyjpeg.c: remove variables set but not used
Browse files Browse the repository at this point in the history
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent 9fe14d6 commit 88dc082
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions com32/lib/jpeg/tinyjpeg.c
Expand Up @@ -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
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -442,16 +440,15 @@ 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",
"????",
"YCbCr",
"CYMK"
};
#endif

precision = stream[2];
height = be16_to_cpu(stream+3);
Expand All @@ -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;
}

/*******************************************************************************
Expand Down

0 comments on commit 88dc082

Please sign in to comment.