[g2clib] Fix compiler warnings

This commit is contained in:
Roland Winklmeier
2016-01-11 17:34:09 +01:00
parent f290f09d4e
commit f4f5999595
15 changed files with 28 additions and 27 deletions

View File

@@ -39,15 +39,13 @@ g2int simunpack(unsigned char *cpack,g2int *idrstmpl,g2int ndpts,g2float *fld)
{
g2int *ifld;
g2int j,nbits,itype;
g2int j,nbits;
g2float ref,bscale,dscale;
rdieee(idrstmpl+0,&ref,1);
bscale = int_power(2.0,idrstmpl[1]);
dscale = int_power(10.0,-idrstmpl[2]);
nbits = idrstmpl[3];
itype = idrstmpl[4];
ifld=(g2int *)calloc((ndpts ? ndpts : 1),sizeof(g2int));
if ( ifld == 0 ) {