From d1db3ee59c9886ad4f0390a8bc28fbc08c0837f1 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 20 May 2009 11:05:18 +0200 Subject: Fix warning flags. --- cfg.mk | 4 +++- examples/Makefile.am | 2 +- lib/Makefile.am | 2 +- src/Makefile.am | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cfg.mk b/cfg.mk index 3278b85..8e27913 100644 --- 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 . -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` diff --git a/examples/Makefile.am b/examples/Makefile.am index 62c84f0..b6997c3 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -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 diff --git a/lib/Makefile.am b/lib/Makefile.am index ae1988b..c94d937 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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 diff --git a/src/Makefile.am b/src/Makefile.am index 58d8f89..85cf3fa 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -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 -- cgit v1.2.3