]> git.lizzy.rs Git - zlib.git/commitdiff
Add address checking in clang to -w option of configure.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 19 Feb 2017 07:07:01 +0000 (23:07 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 19 Feb 2017 07:07:01 +0000 (23:07 -0800)
configure

index e974d1fd799fbca5025393bcdfdcb8478067528d..f4127954c9833353e6547379f741be98b0f2b337 100755 (executable)
--- a/configure
+++ b/configure
@@ -194,9 +194,9 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
   fi
   if test "$warn" -eq 1; then
     if test "$zconst" -eq 1; then
-      CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual -pedantic -DZLIB_CONST"
+      CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual -pedantic -DZLIB_CONST -fsanitize=address"
     else
-      CFLAGS="${CFLAGS} -Wall -Wextra -pedantic"
+      CFLAGS="${CFLAGS} -Wall -Wextra -pedantic -fsanitize=address"
     fi
   fi
   if test $debug -eq 1; then