From: Mark Adler Date: Sun, 19 Feb 2017 07:07:01 +0000 (-0800) Subject: Add address checking in clang to -w option of configure. X-Git-Tag: v1.2.12~50 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=be5e3647c4aca626dcfa833ae2455b7af21b60b3;p=zlib.git Add address checking in clang to -w option of configure. --- diff --git a/configure b/configure index e974d1f..f412795 100755 --- 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