Const correctness and cppcheck warnings

This commit is contained in:
shahramn 2024-03-15 13:21:10 +00:00
parent e87675b1ae
commit 416242b863
1 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ grib_handle* grib_util_sections_copy(grib_handle* hfrom, grib_handle* hto, int w
static grib_trie* init_list(const char* name);
static grib_trie* param_id_list = NULL;
static grib_trie* mars_param_list = NULL;
// TODO thread safe
grib_string_list* grib_util_get_param_id(const char* mars_param)
{
if (!mars_param_list && (mars_param_list = init_list("mars_param.table")) == NULL)
@ -1092,7 +1092,7 @@ grib_handle* grib_util_set_spec(grib_handle* h,
if (spec->missingValue) COPY_SPEC_DOUBLE(missingValue);
SET_LONG_VALUE("ijDirectionIncrementGiven", 1);
// TODO: add Assert
// TODO(masn): add Assert
COPY_SPEC_LONG(Ni);
COPY_SPEC_DOUBLE(iDirectionIncrementInDegrees);
COPY_SPEC_LONG(Nj);