mirror of https://github.com/ecmwf/eccodes.git
Accessor: Remove unused argument
This commit is contained in:
parent
97d5e44d5a
commit
b605be1e37
|
@ -835,8 +835,7 @@ static int encode_double_value(grib_context* c, grib_buffer* buff, long* pos, bu
|
|||
return err;
|
||||
}
|
||||
|
||||
static int encode_string_value(grib_context* c, grib_buffer* buff, long* pos, bufr_descriptor* bd,
|
||||
grib_accessor_bufr_data_array_t* self, char* sval)
|
||||
static int encode_string_value(grib_context* c, grib_buffer* buff, long* pos, bufr_descriptor* bd, char* sval)
|
||||
{
|
||||
int err = 0;
|
||||
int len;
|
||||
|
@ -845,7 +844,7 @@ static int encode_string_value(grib_context* c, grib_buffer* buff, long* pos, bu
|
|||
grib_buffer_set_ulength_bits(c, buff, buff->ulength_bits + bd->width);
|
||||
err = grib_encode_string(buff->data, pos, len, sval);
|
||||
if (err) {
|
||||
grib_context_log(c, GRIB_LOG_ERROR, "encode_string_value: %s. Failed to encode '%s'", bd->shortName, sval);
|
||||
grib_context_log(c, GRIB_LOG_ERROR, "%s: %s. Failed to encode '%s'", __func__, bd->shortName, sval);
|
||||
}
|
||||
|
||||
return err;
|
||||
|
@ -1151,7 +1150,7 @@ static int encode_new_element(grib_context* c, grib_accessor_bufr_data_array_t*
|
|||
grib_sarray_delete(c, stringValues);
|
||||
}
|
||||
else {
|
||||
err = encode_string_value(c, buff, pos, bd, self, csval);
|
||||
err = encode_string_value(c, buff, pos, bd, csval);
|
||||
grib_context_free(c, csval);
|
||||
}
|
||||
}
|
||||
|
@ -1273,7 +1272,7 @@ static int encode_element(grib_context* c, grib_accessor_bufr_data_array_t* self
|
|||
grib_context_log(c, GRIB_LOG_ERROR, "encode_element '%s': Invalid index %d", bd->shortName, idx);
|
||||
return GRIB_INVALID_ARGUMENT;
|
||||
}
|
||||
err = encode_string_value(c, buff, pos, bd, self, self->stringValues->v[idx]->v[0]);
|
||||
err = encode_string_value(c, buff, pos, bd, self->stringValues->v[idx]->v[0]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue