summaryrefslogtreecommitdiff
path: root/src/compression/huffman.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-09 12:47:42 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-09 12:47:42 (GMT)
commitea37cbf48b84b75a9ec535af679d6104757e4271 (patch)
tree07df943c7ca93ff3200601fba71ef304a29ba275 /src/compression/huffman.c
parent0fad649af860bebdc3b4e422700b721c0f09007d (diff)
Fixing many compiler warnings.
Diffstat (limited to 'src/compression/huffman.c')
-rw-r--r--src/compression/huffman.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compression/huffman.c b/src/compression/huffman.c
index 1272e46..b5cd3c7 100644
--- a/src/compression/huffman.c
+++ b/src/compression/huffman.c
@@ -56,6 +56,7 @@ struct codelength
static int comp_htree(const void *leafptr1, const void *leafptr2, const void *private)
{
+ (void)private;
const union htree_nodeleaf *leaf1=(union htree_nodeleaf *)leafptr1;
const union htree_nodeleaf *leaf2=(union htree_nodeleaf *)leafptr2;
@@ -185,6 +186,7 @@ static unsigned int readbits(int length, unsigned char **input, int *bitptr)
static int comp_codes(const void *codeptr1, const void *codeptr2, const void *private)
{
+ (void)private;
const struct codelength *code1=(struct codelength *)codeptr1;
const struct codelength *code2=(struct codelength *)codeptr2;
@@ -202,6 +204,7 @@ static int comp_codes(const void *codeptr1, const void *codeptr2, const void *pr
static int comp_codes_value(const void *codeptr1, const void *codeptr2, const void *private)
{
+ (void)private;
const struct codelength *code1=(struct codelength *)codeptr1;
const struct codelength *code2=(struct codelength *)codeptr2;
@@ -470,6 +473,8 @@ void Ptngc_comp_conv_from_huffman(unsigned char *huffman,
unsigned int *huffman_dict_unpacked,
int huffman_dict_unpackedlen)
{
+ (void)huffman_dictlen;
+ (void)huffman_dict_unpackedlen;
struct codelength *codelength=warnmalloc(ndict*sizeof *codelength);
int i,j;
int maxdict;
contact: Jan Huwald // Impressum