From: George Joseph Date: Thu, 10 Nov 2016 00:18:00 +0000 (-0700) Subject: build: Fix default values for some SANITIZER options X-Git-Tag: 14.2.0-rc1~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbcb9582540bd75dca0128d70afa206df5e071be;p=thirdparty%2Fasterisk.git build: Fix default values for some SANITIZER options 2 of the sanitizers didn't have default values so in systems that don't support sanitizers menuselect would spit out warnings. They were harmless but confusing. They've now been set to "0". Change-Id: I08dc495e3b83f1feac3160b421f538c375fc5d58 --- diff --git a/configure b/configure index 6c09788c98..52c7324fcd 100755 --- a/configure +++ b/configure @@ -18585,7 +18585,7 @@ if ac_fn_c_try_compile "$LINENO"; then : $as_echo "yes" >&6; } AST_ADDRESS_SANITIZER=1 else - AST_ADDRESS_SANITIZER= + AST_ADDRESS_SANITIZER=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } @@ -18617,7 +18617,7 @@ if ac_fn_c_try_compile "$LINENO"; then : $as_echo "yes" >&6; } AST_THREAD_SANITIZER=1 else - AST_THREAD_SANITIZER= + AST_THREAD_SANITIZER=0 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } diff --git a/configure.ac b/configure.ac index 9098d74d42..ce9c178434 100644 --- a/configure.ac +++ b/configure.ac @@ -1113,7 +1113,7 @@ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([], [int x = 1;])], AC_MSG_RESULT(yes) [AST_ADDRESS_SANITIZER=1], - [AST_ADDRESS_SANITIZER=] + [AST_ADDRESS_SANITIZER=0] AC_MSG_RESULT(no) ) CFLAGS="${saved_sanitize_CFLAGS}" @@ -1129,7 +1129,7 @@ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([], [int x = 1;])], AC_MSG_RESULT(yes) [AST_THREAD_SANITIZER=1], - [AST_THREAD_SANITIZER=] + [AST_THREAD_SANITIZER=0] AC_MSG_RESULT(no) ) CFLAGS="${saved_sanitize_CFLAGS}"