summaryrefslogtreecommitdiff
path: root/src/compression/coder.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-14 14:25:10 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-14 14:25:10 (GMT)
commitb79ab3c01c8e7aa6e4dddb3b34fe1674766d3d06 (patch)
treee436aeea2cbd93accddc993d62508592d462b774 /src/compression/coder.c
parent4a993e0d5aa155079f4e02a6d392a1f9f705bf16 (diff)
Fix compiler warnings.
Diffstat (limited to 'src/compression/coder.c')
-rw-r--r--src/compression/coder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compression/coder.c b/src/compression/coder.c
index 7dfe34a..0e34d93 100644
--- a/src/compression/coder.c
+++ b/src/compression/coder.c
@@ -331,7 +331,7 @@ unsigned char *Ptngc_pack_array(struct coder *coder_inst,int *input, int *length
static int unpack_array_stop_bits(struct coder *coder_inst,unsigned char *packed,int *output, int length, int coding_parameter)
{
/* This is just to avoid warnings for unused parameters. For some reason MSVC does not like "(void) coder_inst" here. */
- if(coder_inst);
+ if(coder_inst) {}
int i,j;
unsigned int extract_mask=0x80;
unsigned char *ptr=packed;
@@ -385,7 +385,7 @@ static int unpack_array_stop_bits(struct coder *coder_inst,unsigned char *packed
static int unpack_array_triplet(struct coder *coder_inst,unsigned char *packed,int *output, int length, int coding_parameter)
{
/* This is just to avoid warnings for unused parameters. For some reason MSVC does not like "(void) coder_inst" here. */
- if(coder_inst);
+ if(coder_inst) {}
int i,j;
unsigned int extract_mask=0x80;
unsigned char *ptr=packed;
@@ -458,7 +458,7 @@ static int unpack_array_triplet(struct coder *coder_inst,unsigned char *packed,i
static int unpack_array_bwlzh(struct coder *coder_inst,unsigned char *packed,int *output, int length, int natoms)
{
/* This is just to avoid warnings for unused parameters. For some reason MSVC does not like "(void) coder_inst" here. */
- if(coder_inst);
+ if(coder_inst) {}
int i,j,k,n=length;
unsigned int *pval=warnmalloc(n*sizeof *pval);
int nframes=n/natoms/3;
contact: Jan Huwald // Impressum