gtk-css-engine r56 - branches/bzr



Author: robsta
Date: Fri Sep  5 11:33:23 2008
New Revision: 56
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=56&view=rev

Log:
Run distcheck with -Werror.

Modified:
   branches/bzr/   (props changed)
   branches/bzr/Makefile.am
   branches/bzr/configure.in

Modified: branches/bzr/Makefile.am
==============================================================================
--- branches/bzr/Makefile.am	(original)
+++ branches/bzr/Makefile.am	Fri Sep  5 11:33:23 2008
@@ -1,6 +1,6 @@
 
 ACLOCAL_AMFLAGS = -I .
-DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-werror
 
 SUBDIRS = libccd src themes
 

Modified: branches/bzr/configure.in
==============================================================================
--- branches/bzr/configure.in	(original)
+++ branches/bzr/configure.in	Fri Sep  5 11:33:23 2008
@@ -18,6 +18,14 @@
 	fi
 ])
 
+AC_ARG_ENABLE([werror], 
+	[AS_HELP_STRING([--enable-werror], [bail on warnings])], 
+[
+	if test "$enableval" == "yes"; then
+		CFLAGS="$CFLAGS -Werror"
+	fi	
+])
+
 ### Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
@@ -75,8 +83,14 @@
 
 set_more_warnings=yes
 if test "$GCC" = "yes" -a "$CC" != 'g++' -a "x$set_more_warnings" != "xno"; then
-	for option in -std=c99 -pedantic -Wall -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -Wdeclaration-after-statement -Wnested-externs -Wmissing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-pointer-sign \
-	-Wbitwise -Wcast-to-as -Wdefault-bitfield-sign -Wdo-while -Wparen-string -Wptr-subtraction-blows -Wreturn-void -Wtypesign ; do
+	for option in -std=c99 -pedantic -Wall -Wbitwise -Wcast-to-as 		\
+		      -Wchar-subscripts -Wdeclaration-after-statement 		\
+		      -Wdefault-bitfield-sign -Wdo-while -Wmissing-declarations	\
+		      -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs	\
+		      -Wnested-externs -Wno-pointer-sign -Wparen-string		\
+		      -Wpointer-arith -Wptr-subtraction-blows -Wreturn-void	\
+		      -Wsign-compare -Wstrict-prototypes -Wtypesign		\
+		      -Wwrite-strings ; do
 		SAVE_CFLAGS="$CFLAGS"
 		CFLAGS="$CFLAGS $option"
 		AC_MSG_CHECKING([whether gcc understands $option])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]