summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2010-08-18 18:39:35 +0400
committerNikolai Kondrashov <spbnick@gmail.com>2010-08-18 18:39:35 +0400
commit7acc7ca5712ac63b501f61a7208caebfc2a85078 (patch)
tree1a59dd387730a451641c5bc7526078b767e1f367
parent199cb6dfb6b476978bec0c9b1496ce2e37fce7ae (diff)
downloadusbhid-dump-7acc7ca5712ac63b501f61a7208caebfc2a85078.tar.gz
Move -Wextra -Werror to debug build
The -Wextra and -Werror flags are only used with --enable-debug now.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f8cb70c..79716eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,7 @@ AC_CONFIG_MACRO_DIR([m4])
# To have empty CFLAGS instead of undefined and '-g -O2' by default
CFLAGS=$CFLAGS
-CFLAGS="-Os -Wall -Wextra -Werror $CFLAGS"
+CFLAGS="-Os -Wall $CFLAGS"
ABS_SRCDIR=`cd ${srcdir} ; pwd`
ABS_BUILDDIR=`pwd`
CPPFLAGS="-I${ABS_BUILDDIR} -I${ABS_BUILDDIR}/include -D_GNU_SOURCE -DNDEBUG $CPPFLAGS"
@@ -68,7 +68,7 @@ AC_ARG_ENABLE(
# Output features to preprocessor and compiler
if test "$enable_debug" = "yes"; then
CPPFLAGS="$CPPFLAGS -UNDEBUG"
- CFLAGS="$CFLAGS -g -O0"
+ CFLAGS="$CFLAGS -Wextra -Werror -g -O0"
fi
#