mirror of https://github.com/ecmwf/eccodes.git
Fix compiler warnings
This commit is contained in:
parent
dbcc236629
commit
8cdd6b5b93
|
@ -557,10 +557,9 @@ static int encode_double_array(grib_context* c,grib_buffer* buff,long* pos,int i
|
||||||
maxAllowed=(grib_power(modifiedWidth,2)+modifiedReference)*modifiedFactor;
|
maxAllowed=(grib_power(modifiedWidth,2)+modifiedReference)*modifiedFactor;
|
||||||
minAllowed=modifiedReference*modifiedFactor;
|
minAllowed=modifiedReference*modifiedFactor;
|
||||||
|
|
||||||
|
|
||||||
start=self->start;
|
start=self->start;
|
||||||
nvals=self->end-self->start;
|
nvals=self->end-self->start;
|
||||||
if (nvals<=0) return GRIB_NO_VALUES;
|
if (nvals==0) return GRIB_NO_VALUES;
|
||||||
|
|
||||||
v=dvalues->v;
|
v=dvalues->v;
|
||||||
|
|
||||||
|
@ -843,10 +842,10 @@ static int decode_replication(grib_context* c,grib_accessor_bufr_data_array* sel
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int encode_new_bitmap(grib_context* c,grib_buffer* buff,long *pos,int idx,grib_accessor_bufr_data_array* self) {
|
static int encode_new_bitmap(grib_context* c,grib_buffer* buff,long *pos,int idx,grib_accessor_bufr_data_array* self)
|
||||||
|
{
|
||||||
grib_darray* doubleValues=NULL;
|
grib_darray* doubleValues=NULL;
|
||||||
int err=0;
|
int err=0;
|
||||||
int i;
|
|
||||||
double cdval=0;
|
double cdval=0;
|
||||||
if (self->nInputBitmap>0) {
|
if (self->nInputBitmap>0) {
|
||||||
if (self->nInputBitmap < self->iInputBitmap)
|
if (self->nInputBitmap < self->iInputBitmap)
|
||||||
|
@ -1083,14 +1082,13 @@ static int build_bitmap(grib_accessor_bufr_data_array *self,unsigned char* data,
|
||||||
static int build_bitmap_new_data(grib_accessor_bufr_data_array *self,unsigned char* data,long* pos,int iel,grib_iarray* elementsDescriptorsIndex,int iBitmapOperator)
|
static int build_bitmap_new_data(grib_accessor_bufr_data_array *self,unsigned char* data,long* pos,int iel,grib_iarray* elementsDescriptorsIndex,int iBitmapOperator)
|
||||||
{
|
{
|
||||||
int bitmapSize=0,iDelayedReplication=0;
|
int bitmapSize=0,iDelayedReplication=0;
|
||||||
int i,localReference,width,bitmapEndElementsDescriptorsIndex;
|
int i,bitmapEndElementsDescriptorsIndex;
|
||||||
long ppos,n;
|
long n;
|
||||||
grib_accessor* a=(grib_accessor*)self;
|
grib_accessor* a=(grib_accessor*)self;
|
||||||
grib_context* c=a->context;
|
grib_context* c=a->context;
|
||||||
bufr_descriptor** descriptors=self->expanded->v;
|
bufr_descriptor** descriptors=self->expanded->v;
|
||||||
long* edi=elementsDescriptorsIndex->v;
|
long* edi=elementsDescriptorsIndex->v;
|
||||||
/* int iel=grib_iarray_used_size(elementsDescriptorsIndex)-1; */
|
/* int iel=grib_iarray_used_size(elementsDescriptorsIndex)-1; */
|
||||||
int err=0;
|
|
||||||
|
|
||||||
switch (descriptors[iBitmapOperator]->code) {
|
switch (descriptors[iBitmapOperator]->code) {
|
||||||
case 236000:
|
case 236000:
|
||||||
|
|
Loading…
Reference in New Issue