mirror of https://github.com/ecmwf/eccodes.git
Deprecation warning
This commit is contained in:
parent
9b72c73c52
commit
7760bb5490
|
@ -1027,7 +1027,7 @@ void* grib_context_buffer_malloc_clear(const grib_context* c, size_t size)
|
|||
|
||||
void grib_context_set_memory_proc(grib_context* c, grib_malloc_proc m, grib_free_proc f, grib_realloc_proc r)
|
||||
{
|
||||
fprintf(stderr, "Warning: The %s function is deprecated and will be removed later.\n", __func__);
|
||||
fprintf(stderr, "ECCODES WARNING : The %s function is deprecated and will be removed in a future release.\n", __func__);
|
||||
c->free_mem = f;
|
||||
c->alloc_mem = m;
|
||||
c->realloc_mem = r;
|
||||
|
@ -1035,14 +1035,14 @@ void grib_context_set_memory_proc(grib_context* c, grib_malloc_proc m, grib_free
|
|||
|
||||
void grib_context_set_persistent_memory_proc(grib_context* c, grib_malloc_proc m, grib_free_proc f)
|
||||
{
|
||||
fprintf(stderr, "Warning: The %s function is deprecated and will be removed later.\n", __func__);
|
||||
fprintf(stderr, "ECCODES WARNING : The %s function is deprecated and will be removed in a future release.\n", __func__);
|
||||
c->free_persistent_mem = f;
|
||||
c->alloc_persistent_mem = m;
|
||||
}
|
||||
|
||||
void grib_context_set_buffer_memory_proc(grib_context* c, grib_malloc_proc m, grib_free_proc f, grib_realloc_proc r)
|
||||
{
|
||||
fprintf(stderr, "Warning: The %s function is deprecated and will be removed later.\n", __func__);
|
||||
fprintf(stderr, "ECCODES WARNING : The %s function is deprecated and will be removed in a future release.\n", __func__);
|
||||
c->free_buffer_mem = f;
|
||||
c->alloc_buffer_mem = m;
|
||||
c->realloc_buffer_mem = r;
|
||||
|
|
Loading…
Reference in New Issue