Fix warning flags.
authorSimon Josefsson <simon@josefsson.org>
Wed, 20 May 2009 09:05:18 +0000 (11:05 +0200)
committerSimon Josefsson <simon@josefsson.org>
Wed, 20 May 2009 09:05:18 +0000 (11:05 +0200)
cfg.mk
examples/Makefile.am
lib/Makefile.am
src/Makefile.am

diff --git a/cfg.mk b/cfg.mk
index 3278b85..8e27913 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -16,7 +16,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-CFGFLAGS ?= --enable-gtk-doc WARN_CFLAGS=-Werror
+WFLAGS ?= --enable-gcc-warnings
+ADDFLAGS ?=
+CFGFLAGS ?= --enable-gtk-doc $(ADDFLAGS) $(WFLAGS)
 
 INDENT_SOURCES = `find . -name \*.[ch]|grep -v -e ^./gl -e ^./lib/gl -e ^./build-aux/ -e ^./lib/ASN1.c -e ^./tests/Test_tree_asn1_tab.c`
 
index 62c84f0..b6997c3 100644 (file)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-AM_CFLAGS = $(WARN_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl
 
 EXTRA_DIST = asn1Coding_test.asn asn1Coding_test.asg
index ae1988b..c94d937 100644 (file)
@@ -18,7 +18,7 @@
 
 SUBDIRS = gllib
 
-AM_CFLAGS = $(WARN_CFLAGS) $(CFLAG_VISIBILITY)
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAG_VISIBILITY)
 AM_CPPFLAGS = -I$(builddir)/gllib -DASN1_BUILDING
 
 include_HEADERS = libtasn1.h
index 58d8f89..85cf3fa 100644 (file)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-AM_CFLAGS = $(WARN_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl
 
 LDADD = ../lib/libtasn1.la ../gl/libgnu.la