Fix warnings re: class_name_ is used uninitialized

This commit is contained in:
shahramn 2024-10-09 17:32:34 +01:00
parent b4f0d24427
commit a75517fe92
14 changed files with 3 additions and 23 deletions

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *
@ -471,9 +470,7 @@ int grib_accessor_expanded_descriptors_t::expand()
/* grib_iarray* unexp=0; */ /* grib_iarray* unexp=0; */
int i; int i;
long* u = 0; long* u = 0;
char key[50] = { char key[50] = {0,};
0,
};
long centre, masterTablesVersionNumber, localTablesVersionNumber, masterTablesNumber; long centre, masterTablesVersionNumber, localTablesVersionNumber, masterTablesNumber;
change_coding_params ccp; change_coding_params ccp;
bufr_descriptors_array* unexpanded = NULL; bufr_descriptors_array* unexpanded = NULL;
@ -683,9 +680,7 @@ int grib_accessor_expanded_descriptors_t::unpack_string_array(char** buffer, siz
{ {
int err = 0; int err = 0;
long* v = NULL; long* v = NULL;
char buf[25] = { char buf[25] = {0,};
0,
};
long llen = 0; long llen = 0;
size_t i = 0, size = 0; size_t i = 0, size = 0;
const grib_context* c = context_; const grib_context* c = context_;

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *
@ -29,9 +28,7 @@ void grib_accessor_g2grid_t::init(const long l, grib_arguments* c)
basic_angle_ = grib_arguments_get_name(hand, c, n++); basic_angle_ = grib_arguments_get_name(hand, c, n++);
sub_division_ = grib_arguments_get_name(hand, c, n++); sub_division_ = grib_arguments_get_name(hand, c, n++);
flags_ |= flags_ |= GRIB_ACCESSOR_FLAG_EDITION_SPECIFIC | GRIB_ACCESSOR_FLAG_READ_ONLY;
GRIB_ACCESSOR_FLAG_EDITION_SPECIFIC |
GRIB_ACCESSOR_FLAG_READ_ONLY;
} }
int grib_accessor_g2grid_t::value_count(long* count) int grib_accessor_g2grid_t::value_count(long* count)

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *