1
1

item_in_tree is only used in debug mode, so protect it.

This commit was SVN r25548.
Этот коммит содержится в:
George Bosilca 2011-11-29 23:48:26 +00:00
родитель d71492108c
Коммит 2589e55a75

Просмотреть файл

@ -207,6 +207,7 @@ void opal_tree_add_child(opal_tree_item_t *parent_item,
/*
* check to see if item is in tree
*/
#if OPAL_ENABLE_DEBUG
static bool item_in_tree(opal_tree_item_t *item, opal_tree_item_t *search_item)
{
bool result = false;
@ -226,6 +227,7 @@ static bool item_in_tree(opal_tree_item_t *item, opal_tree_item_t *search_item)
}
return(result);
}
#endif /* OPAL_ENABLE_DEBUG */
/*
* remove item and all items below it from tree and return it to the caller