summaryrefslogtreecommitdiffstats
path: root/src/H5TB.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-12-06 20:38:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-12-06 20:38:31 (GMT)
commit31431be37492b0446c048401bcb9512ae23ef8f4 (patch)
tree9928afd828704483be974f8e2cd8238bbc576869 /src/H5TB.c
parent1b1e1ebbbd5b4d18c5f413e79b58f7f7e782519f (diff)
downloadhdf5-31431be37492b0446c048401bcb9512ae23ef8f4.zip
hdf5-31431be37492b0446c048401bcb9512ae23ef8f4.tar.gz
hdf5-31431be37492b0446c048401bcb9512ae23ef8f4.tar.bz2
[svn-r7917] Purpose:
Code cleanup Description: Clean up compiler warnings, especially the 'FUNC' variable not used which comes out in production mode. Solution: Had to add a new FUNC_ENTER_NOAPI_NOINIT_NOFUNC macro for those non-API functions which don't need the 'FUNC' variable defined. (This will be _so_ much easier when C99 is standard on all our supposed platforms, since it has a __FUNC__ macro... ) Platforms tested: FreeBSD 4.9 (sleipnir) too minor for h5committest (although there were lots of files changed, the change was minor in each one)
Diffstat (limited to 'src/H5TB.c')
-rw-r--r--src/H5TB.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/H5TB.c b/src/H5TB.c
index be1b1aa..7b3e3f2 100644
--- a/src/H5TB.c
+++ b/src/H5TB.c
@@ -130,7 +130,7 @@ static int interface_initialize_g = 0;
static int
H5TB_strcmp(const void *k1, const void *k2, int UNUSED cmparg)
{
- FUNC_ENTER_NOINIT(H5TB_strcmp);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_strcmp);
assert(k1);
assert(k2);
@@ -156,7 +156,7 @@ H5TB_strcmp(const void *k1, const void *k2, int UNUSED cmparg)
static int
H5TB_addr_cmp(const void *k1, const void *k2, int UNUSED cmparg)
{
- FUNC_ENTER_NOINIT(H5TB_addr_cmp);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_addr_cmp);
assert(k1);
assert(k2);
@@ -182,7 +182,7 @@ H5TB_addr_cmp(const void *k1, const void *k2, int UNUSED cmparg)
static int
H5TB_int_cmp(const void *k1, const void *k2, int UNUSED cmparg)
{
- FUNC_ENTER_NOINIT(H5TB_int_cmp);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_int_cmp);
assert(k1);
assert(k2);
@@ -208,7 +208,7 @@ H5TB_int_cmp(const void *k1, const void *k2, int UNUSED cmparg)
static int
H5TB_hsize_cmp(const void *k1, const void *k2, int UNUSED cmparg)
{
- FUNC_ENTER_NOINIT(H5TB_hsize_cmp);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_hsize_cmp);
assert(k1);
assert(k2);
@@ -1291,7 +1291,7 @@ H5TB_printNode(H5TB_NODE * node, void(*key_dump)(void *,void *))
{
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOINIT(H5TB_printNode);
+ FUNC_ENTER_NOAPI_NOINIT(H5TB_printNode);
if (node == NULL) {
printf("ERROR: null node pointer\n");
@@ -1335,7 +1335,7 @@ H5TB_dumpNode(H5TB_NODE *node, void (*key_dump)(void *,void *),
{
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOINIT(H5TB_dumpNode);
+ FUNC_ENTER_NOAPI_NOINIT(H5TB_dumpNode);
if (node == NULL)
HGOTO_DONE(FAIL);
@@ -1394,7 +1394,7 @@ done:
static H5TB_NODE *
H5TB_end(H5TB_NODE * root, int side)
{
- FUNC_ENTER_NOINIT(H5TB_end);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_end);
assert(root);
assert(side==LEFT || side==RIGHT);
@@ -1411,7 +1411,7 @@ H5TB_nbr(H5TB_NODE * ptr, int side)
{
H5TB_NODE *ret_value; /* Return value */
- FUNC_ENTER_NOINIT(H5TB_nbr);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_nbr);
if (!HasChild(ptr, side))
HGOTO_DONE (ptr->link[side]);
@@ -1440,7 +1440,7 @@ H5TB_ffind(H5TB_NODE * root, const void * key, unsigned fast_compare, H5TB_NODE
int cmp = 1;
H5TB_NODE *ret_value = NULL;
- FUNC_ENTER_NOINIT(H5TB_ffind);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_ffind);
switch(fast_compare) {
case H5TB_FAST_HADDR_COMPARE:
@@ -1548,7 +1548,7 @@ H5TB_swapkid(H5TB_NODE ** root, H5TB_NODE * ptr, int side)
H5TB_leaf plcnt, prcnt, /* current values of the ptr's and kid's leaf count */
klcnt, krcnt;
- FUNC_ENTER_NOINIT(H5TB_swapkid);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_swapkid);
deep[2] = (deep[1] = 0) + Delta(kid, side);
deep[0] = Max(0, deep[2]) + 1 - Delta(ptr, side);
@@ -1650,7 +1650,7 @@ H5TB_balance(H5TB_NODE ** root, H5TB_NODE * ptr, int side, int added)
int odelta;
int obal;
- FUNC_ENTER_NOINIT(H5TB_balance);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_balance);
while (NULL != ptr) {
odelta = Delta(ptr, side); /* delta before the node was added */