diff --git a/src/geo_iterator/grib_iterator.h b/src/geo_iterator/grib_iterator.h index 948bb5fe9..d97b6974b 100644 --- a/src/geo_iterator/grib_iterator.h +++ b/src/geo_iterator/grib_iterator.h @@ -41,7 +41,7 @@ protected: const char* class_name_; private: - grib_arguments* args_; /** args of iterator */ + //grib_arguments* args_; [>* args of iterator <] size_t size_; int inited_; }; diff --git a/src/geo_iterator/grib_iterator_class_gen.cc b/src/geo_iterator/grib_iterator_class_gen.cc index e2c9d825e..ea813dd8b 100644 --- a/src/geo_iterator/grib_iterator_class_gen.cc +++ b/src/geo_iterator/grib_iterator_class_gen.cc @@ -22,15 +22,13 @@ int Gen::init(grib_handle* h, grib_arguments* args) const char* s_rawData = NULL; const char* s_numPoints = NULL; long numberOfPoints = 0; - carg_ = 1; + int carg = 1; - s_numPoints = grib_arguments_get_name(h, args, carg_++); - missingValue_ = grib_arguments_get_name(h, args, carg_++); - s_rawData = grib_arguments_get_name(h, args, carg_++); + s_numPoints = grib_arguments_get_name(h, args, carg++); + missingValue_ = grib_arguments_get_name(h, args, carg++); + s_rawData = grib_arguments_get_name(h, args, carg++); data_ = NULL; - h = h; /* We may not need to keep them */ - args = args; if ((err = grib_get_size(h, s_rawData, &dli)) != GRIB_SUCCESS) return err; diff --git a/src/geo_iterator/grib_iterator_class_gen.h b/src/geo_iterator/grib_iterator_class_gen.h index 0cca14c08..ace2c0232 100644 --- a/src/geo_iterator/grib_iterator_class_gen.h +++ b/src/geo_iterator/grib_iterator_class_gen.h @@ -29,7 +29,6 @@ public: bool has_next() const override; protected: - int carg_; double* lats_; double* lons_;