Fix warnings re: class_name_ is used uninitialized

This commit is contained in:
shahramn 2024-10-09 17:26:46 +01:00
parent 867b01f8c6
commit b4f0d24427
2 changed files with 1 additions and 4 deletions

View File

@ -1463,7 +1463,6 @@ template <typename T>
int grib_accessor_data_g22order_packing_t::unpack(T* val, size_t* len)
{
static_assert(std::is_floating_point<T>::value, "Requires floating points numbers");
const char* class_name_ = class_name_;
grib_handle* gh = grib_handle_of_accessor(this);
size_t i = 0;

View File

@ -311,7 +311,6 @@ int grib_accessor_data_simple_packing_t::_unpack_double(double* val, size_t* len
{
grib_accessor_data_simple_packing_t* self = (grib_accessor_data_simple_packing_t*)this;
grib_handle* gh = grib_handle_of_accessor(this);
const char* class_name_ = class_name_;
size_t i = 0;
int err = 0;
@ -454,8 +453,7 @@ int grib_accessor_data_simple_packing_t::unpack_double_subarray(double* val, siz
int grib_accessor_data_simple_packing_t::pack_double(const double* val, size_t* len)
{
grib_handle* gh = grib_handle_of_accessor(this);
const char* class_name_ = class_name_;
grib_handle* gh = grib_handle_of_accessor(this);
size_t i = 0;
size_t n_vals = *len;