]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Use gnulib warnings module.
authorSimon Josefsson <simon@josefsson.org>
Wed, 12 Nov 2008 15:08:54 +0000 (16:08 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 12 Nov 2008 15:08:54 +0000 (16:08 +0100)
cfg.mk
configure.ac
gl/m4/gnulib-comp.m4
gl/m4/warnings.m4
lib/configure.ac
libextra/configure.ac

diff --git a/cfg.mk b/cfg.mk
index ec3bccf9839766e314f7f647a6c9b90c78d8e184..b1a86f8ab9fea213ac52f018eee4323b4cb27c1e 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -18,7 +18,7 @@
 # along with this file; if not, write to the Free Software Foundation,
 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
-CFGFLAGS ?= --enable-developer-mode --enable-gtk-doc
+CFGFLAGS ?= --enable-developer-mode --enable-gtk-doc WARN_CFLAGS="-Werror"
 
 INDENT_SOURCES = `find . -name \*.c|grep -v -e ^./lgl -e ^./gl -e ^./src/cfg -e -gaa.c -e asn1_tab.c`
 
index b335c63434a6650f04d2f9deec783ba9978e1d6a..2f9639de05c9b8b1523d2e365c5d43ee4862874a 100644 (file)
@@ -214,6 +214,9 @@ AC_PROG_LIBTOOL
 
 gl_INIT
 
+gl_WARN_ADD([-Wall])
+export WARN_CFLAGS
+
 AC_CONFIG_SUBDIRS([lib])
 AC_CONFIG_SUBDIRS([libextra])
 
index ddf311cbd066127473caee426955e42dccc14d13..4dc6125c1451e644ef312726b19cae25f25edf4b 100644 (file)
@@ -177,7 +177,7 @@ AC_SUBST([LTALLOCA])
   AC_PROG_MKDIR_P
   gl_UNISTD_H
   gl_FUNC_VASNPRINTF
-  gl_WARN_INIT
+  AC_SUBST([WARN_CFLAGS])
   gl_WCHAR_H
   gl_XSIZE
   m4_ifval(gl_LIBSOURCES_LIST, [
index 71a8e56d9d88e126eeb18dbb3a11c50f014cda13..d2854d95433c989cfd115a74d07f1efbbf57c1d8 100644 (file)
@@ -6,13 +6,6 @@ dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Simon Josefsson
 
-# gl_WARN_INIT
-# Initializes WARN_CFLAGS variable.
-AC_DEFUN([gl_WARN_INIT],
-[AC_SUBST([WARN_CFLAGS])dnl
-AC_ARG_VAR([WARN_CFLAGS], [C compiler warning flags])
-])
-
 # gl_AS_VAR_IF(VAR, VALUE, [IF-MATCH], [IF-NOT-MATCH])
 # ----------------------------------------------------
 # Provide the functionality of AS_VAR_IF if Autoconf does not have it.
index 1c23e1181d0a04c66d30519165c64a81f13bac82..a8f814f97a187d3c5a425e3d7c9bb1dff590444e 100644 (file)
@@ -86,6 +86,8 @@ LIBGNUTLS_CFLAGS="-I${includedir}"
 AC_SUBST(LIBGNUTLS_LIBS)
 AC_SUBST(LIBGNUTLS_CFLAGS)
 
+AC_SUBST([WARN_CFLAGS])
+
 AC_CONFIG_FILES([
   Makefile
   gnutls.pc
index f47cc914a95b3efa2d0acd1a27a32408b2a3ead3..99d0e35ccaa7a7fcb308e0ca899c09a9516ec0d9 100644 (file)
@@ -45,6 +45,8 @@ LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}"
 AC_SUBST(LIBGNUTLS_EXTRA_LIBS)
 AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS)
 
+AC_SUBST([WARN_CFLAGS])
+
 AC_CONFIG_FILES([
   Makefile
   gnutls-extra.pc