diff --git a/src/geo_iterator/grib_iterator_class_gen.cc b/src/geo_iterator/grib_iterator_class_gen.cc index ea813dd8b..3f8fadc02 100644 --- a/src/geo_iterator/grib_iterator_class_gen.cc +++ b/src/geo_iterator/grib_iterator_class_gen.cc @@ -22,11 +22,11 @@ int Gen::init(grib_handle* h, grib_arguments* args) const char* s_rawData = NULL; const char* s_numPoints = NULL; long numberOfPoints = 0; - int 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; if ((err = grib_get_size(h, s_rawData, &dli)) != GRIB_SUCCESS) diff --git a/src/geo_iterator/grib_iterator_class_gen.h b/src/geo_iterator/grib_iterator_class_gen.h index ace2c0232..0cca14c08 100644 --- a/src/geo_iterator/grib_iterator_class_gen.h +++ b/src/geo_iterator/grib_iterator_class_gen.h @@ -29,6 +29,7 @@ public: bool has_next() const override; protected: + int carg_; double* lats_; double* lons_;