Skip to content

Commit

Permalink
trim's integrity_check should only run with EXPENSIVE_CHECKS.
Browse files Browse the repository at this point in the history
  • Loading branch information
silentbicycle committed Oct 11, 2024
1 parent b2f9d3d commit 35892eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libfsm/trim.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ integrity_check(const char *descr, const struct fsm *fsm)
return;
#endif

#if !EXPENSIVE_CHECKS
return;
#endif

if (LOG_TRIM > 1) {
fprintf(stderr, "integrity check: %s...\n", descr);
}
Expand Down

0 comments on commit 35892eb

Please sign in to comment.