[monet] [build] enable some extra compiler warnings
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [monet] [build] enable some extra compiler warnings
- Date: Sat, 29 Aug 2009 09:41:33 +0000 (UTC)
commit a54712c6839a7b9bd92ddd638f6fe48feff31ba0
Author: Thomas Wood <thos gnome org>
Date: Sat Aug 29 10:33:34 2009 +0100
[build] enable some extra compiler warnings
Add some useful compiler warnings that should be enabled to prevent common
mistakes.
configure.ac | 3 +++
monet/Makefile.am | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8b00038..c725406 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,9 @@ PKG_CHECK_MODULES(MONET, [cairo glib-2.0 gobject-2.0])
AC_SUBST(MONET_LIBS)
AC_SUBST(MONET_CFLAGS)
+MONET_MAINTAINER_CFLAGS="-Werror -Wall -Wshadow -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self -Wmissing-declarations -Wredundant-decls"
+AC_SUBST(MONET_MAINTAINER_CFLAGS)
+
AC_OUTPUT([
Makefile
monet/Makefile
diff --git a/monet/Makefile.am b/monet/Makefile.am
index 1c21e64..7e1ce29 100644
--- a/monet/Makefile.am
+++ b/monet/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = $(MONET_CFLAGS) -Wall -DMONET_COMPILATION
+AM_CFLAGS = $(MONET_CFLAGS) $(MONET_MAINTAINER_CFLAGS) -DMONET_COMPILATION
BUILT_SOURCES = \
mn-enum-types.h \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]