[libdvbpsi-devel] configure.ac: specify -Werror on debug builds only.

Jean-Paul Saman git at videolan.org
Mon Sep 8 14:49:46 CEST 2014


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Mon Sep  8 12:27:07 2014 +0200| [09f9fad68e34975f8a90de564f3f12820947f22e] | committer: Jean-Paul Saman

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

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=09f9fad68e34975f8a90de564f3f12820947f22e
---

 configure.ac |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 66e5fec..2585a8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,7 +22,7 @@ dnl store CFLAGS from user
 CFLAGS_save="${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"
 
 dnl check the operating system
@@ -52,7 +52,7 @@ AC_ARG_ENABLE(debug,
 esac],[debug=false])
 if test "$debug" = "true"
 then
-  CFLAGS_dist="${CFLAGS_dist} -ggdb3"
+  CFLAGS_dist="${CFLAGS_dist} -Werror -ggdb3"
 fi
 
 dnl --enable-gcc-sanitize



More information about the libdvbpsi-devel mailing list