diff --git a/src/accessor/grib_accessor_class_expanded_descriptors.cc b/src/accessor/grib_accessor_class_expanded_descriptors.cc index 6acb4e878..1e3733256 100644 --- a/src/accessor/grib_accessor_class_expanded_descriptors.cc +++ b/src/accessor/grib_accessor_class_expanded_descriptors.cc @@ -58,7 +58,7 @@ void grib_accessor_expanded_descriptors_t::init(const long len, grib_arguments* #if MYDEBUG static int global_depth = -1; -static char* descriptor_type_name(int dtype) +static const char* descriptor_type_name(int dtype) { switch (dtype) { case BUFR_DESCRIPTOR_TYPE_STRING: