Permalink
Browse files

-Change: asserts are disabled by default in Release builds

still enabled by default in debug builds
and can be forced with --enable-assert and --disable-assert options
of configure
  • Loading branch information...
1 parent 91f7f72 commit 3d68b0ba4c88458570335d872fa6f4ff24518492 @miniupnp miniupnp committed Dec 29, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 config.lib
View
@@ -354,6 +354,10 @@ check_params() {
# Show what we configured
if [ "$enable_debug" = "0" ]; then
log 1 "using debug level... no"
+ if [ $enable_assert -eq 1 ]; then
+ enable_assert=0
+ log 1 "disabling asserts"
+ fi
elif [ "$enable_profiling" != "0" ]; then
log 1 "using debug level... profiling (debug level $enable_debug)"
else

0 comments on commit 3d68b0b

Please sign in to comment.