forked from laurikari/tre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Some compilers complain about an unused variable in test mode 9. I believe the purpose of this variable is to prevent the loop from being optimized away since mode 9 seems to be an attempt to measure memory bandwidth. I suspect modern compilers are smart enough to discard the entire loop, but in case they aren't, rewrite the loop and add a dummy statement to suppress the warning. * Instead of having a single `tre_regfree()` call at the end, which segfaults if `tre_regcomp()` has not been called (as is the case for test mode 9) or `tre_regfree()` has already been called (as is the case for test mode 4), make sure there is exactly one `tre_regfree()` call for each `tre_regcomp()` call.
- Loading branch information
1 parent
ad55b97
commit a26cf72
Showing
1 changed file
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters