]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
build: Fix default values for some SANITIZER options 61/4361/1
authorGeorge Joseph <gjoseph@digium.com>
Thu, 10 Nov 2016 00:18:00 +0000 (17:18 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 10 Nov 2016 00:18:00 +0000 (17:18 -0700)
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

configure
configure.ac

index a82dcdcff0a69410d67252a8733cba119d00b9a7..0446c4571884e578b46dcfd1c40f022c8f84afc3 100755 (executable)
--- a/configure
+++ b/configure
@@ -18374,7 +18374,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; }
 
@@ -18406,7 +18406,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; }
 
index 42320e4f2647029f417741445465b449dd53de76..e4a20cfa5a0b5baa0787ab3959a8c6586fd9e356 100644 (file)
@@ -1106,7 +1106,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}"
@@ -1122,7 +1122,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}"