mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fixed various clang -Wself-assign warnings
Use idiomatic cast to void to indicate that a variable is unused.
This commit is contained in:
parent
e188eb95d2
commit
f907cd3b57
@ -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 */
|
||||
|
@ -1140,5 +1140,5 @@ netcdf_supresswarnings(void)
|
||||
ignore = (void*)NCJtotext;
|
||||
ignore = (void*)NCJinsertstring;
|
||||
ignore = (void*)NCJinsertint;
|
||||
ignore = ignore;
|
||||
(void)ignore;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user