Skip to content

Commit

Permalink
Adds Gudhi_debug environment to avoid unused parameter
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>
  • Loading branch information
hschreiber and VincentRouvreau authored Oct 16, 2023
1 parent a373d28 commit 95c4efe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Simplex_tree/include/gudhi/Simplex_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,7 @@ class Simplex_tree {
//invalidate Simplex_handles; we take care of this fact by first doing all
//insertion in a Sibling, then inserting all handles in added_simplices.

#ifdef GUDHI_DEBUG
//check whether vertices u and v are in the tree. If not, return an error.
auto sh_u = root_.members().find(u);
GUDHI_CHECK(sh_u != root_.members().end() &&
Expand All @@ -1456,6 +1457,7 @@ class Simplex_tree {
std::invalid_argument(
"Simplex_tree::insert_edge_as_flag - inserts an already existing edge")
);
#endif

// to update dimension
const auto tmp_dim = dimension_;
Expand Down

0 comments on commit 95c4efe

Please sign in to comment.