Skip to content

Commit

Permalink
conditional compilation of more code that is only used for debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
mailund committed Jun 13, 2019
1 parent 370ec83 commit e9b060b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/stralg/suffix_tree_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ static void check_parent_pointers(struct suffix_tree_node *v)
}
}

#ifndef NDEBUG
static bool has_leaf(struct suffix_tree *st, struct suffix_tree_node *v, size_t leaf)
{
struct st_leaf_iter iter;
Expand All @@ -50,6 +51,7 @@ static bool has_leaf(struct suffix_tree *st, struct suffix_tree_node *v, size_t

return false;
}
#endif

static void check_leaf_search(struct suffix_tree *st)
{
Expand Down

0 comments on commit e9b060b

Please sign in to comment.