Commit 09f9fad6 authored by Jean-Paul Saman's avatar Jean-Paul Saman

configure.ac: specify -Werror on debug builds only.

parent 9563e445
...@@ -22,7 +22,7 @@ dnl store CFLAGS from user ...@@ -22,7 +22,7 @@ dnl store CFLAGS from user
CFLAGS_save="${CFLAGS}" CFLAGS_save="${CFLAGS}"
dnl add features to CFLAGS dnl add features to CFLAGS
CFLAGS_dist="-Wall -Werror --std=gnu99 -D_GNU_SOURCE" CFLAGS_dist="-Wall -std=gnu99 -D_GNU_SOURCE"
CFLAGS_dist="${CFLAGS_dist} -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" CFLAGS_dist="${CFLAGS_dist} -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
dnl check the operating system dnl check the operating system
...@@ -52,7 +52,7 @@ AC_ARG_ENABLE(debug, ...@@ -52,7 +52,7 @@ AC_ARG_ENABLE(debug,
esac],[debug=false]) esac],[debug=false])
if test "$debug" = "true" if test "$debug" = "true"
then then
CFLAGS_dist="${CFLAGS_dist} -ggdb3" CFLAGS_dist="${CFLAGS_dist} -Werror -ggdb3"
fi fi
dnl --enable-gcc-sanitize dnl --enable-gcc-sanitize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment