summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2017-02-18 23:07:01 -0800
committerMark Adler <madler@alumni.caltech.edu>2017-02-18 23:07:01 -0800
commitbe5e3647c4aca626dcfa833ae2455b7af21b60b3 (patch)
tree3f3d1c224c55f9c0c488ce1358af0aca637d5ee4 /configure
parent90287635ef9ae8e51e120483d1b48789239a0577 (diff)
downloadzlib-be5e3647c4aca626dcfa833ae2455b7af21b60b3.tar.gz
Add address checking in clang to -w option of configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
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