gtk-css-engine r18 - bzr-playground
- From: robsta svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-css-engine r18 - bzr-playground
- Date: Mon, 18 Aug 2008 13:50:59 +0000 (UTC)
Author: robsta
Date: Mon Aug 18 13:50:58 2008
New Revision: 18
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=18&view=rev
Log:
Run distcheck with -Werror.
Modified:
bzr-playground/ (props changed)
bzr-playground/Makefile.am
bzr-playground/configure.in
Modified: bzr-playground/Makefile.am
==============================================================================
--- bzr-playground/Makefile.am (original)
+++ bzr-playground/Makefile.am Mon Aug 18 13:50:58 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: bzr-playground/configure.in
==============================================================================
--- bzr-playground/configure.in (original)
+++ bzr-playground/configure.in Mon Aug 18 13:50:58 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]