diff --git a/libdispatch/ncexhash.c b/libdispatch/ncexhash.c index 8a65841e1..b52593ed7 100644 --- a/libdispatch/ncexhash.c +++ b/libdispatch/ncexhash.c @@ -285,6 +285,8 @@ exhashlocate(NCexhashmap* map, ncexhashkey_t hkey, NCexleaf** leafp, int* indexp /* Is there room in the leaf to add an entry? */ #if DEBUG >= 3 fprintf(stderr,"locate: iter=%d offset=%x leaf=(%d)%p active=%d\n",iter,offset,leaf->uid,leaf,(int)leaf->active); +#else + (void)iter; #endif if(leaf->active < map->leaflen) break; /* yes, there is room */ /* Not Enough room, so we need to split this leaf */ diff --git a/libdispatch/ncjson.c b/libdispatch/ncjson.c index f9bf7680e..6a9b46cc6 100644 --- a/libdispatch/ncjson.c +++ b/libdispatch/ncjson.c @@ -1140,5 +1140,5 @@ netcdf_supresswarnings(void) ignore = (void*)NCJtotext; ignore = (void*)NCJinsertstring; ignore = (void*)NCJinsertint; - ignore = ignore; + (void)ignore; } diff --git a/libnczarr/zplugins.c b/libnczarr/zplugins.c index 2f7b54852..bc24ad041 100644 --- a/libnczarr/zplugins.c +++ b/libnczarr/zplugins.c @@ -759,7 +759,7 @@ printhdf5(const NCZ_HDF5 h) static void static_unused(void) { void* p = NULL; - p = p; + (void)p; p = static_unused; #if defined(DEBUGF) || defined(DEBUGL) (void)printplugin(NULL);