From 2589e55a75c4d14b33988194f511916fa2a9530a Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 29 Nov 2011 23:48:26 +0000 Subject: [PATCH] item_in_tree is only used in debug mode, so protect it. This commit was SVN r25548. --- opal/class/opal_tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opal/class/opal_tree.c b/opal/class/opal_tree.c index 02013501b6..b403aa4fb3 100644 --- a/opal/class/opal_tree.c +++ b/opal/class/opal_tree.c @@ -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