[nautilus-actions] Only use DISABLE_DEPRECATED, GSEAL_ENABLED and Werror options in maintainer mode
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Only use DISABLE_DEPRECATED, GSEAL_ENABLED and Werror options in maintainer mode
- Date: Wed, 22 Sep 2010 23:06:28 +0000 (UTC)
commit eca011127c13ff987df40d802bd191ec646c1c9d
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Sep 21 22:55:28 2010 +0200
Only use DISABLE_DEPRECATED, GSEAL_ENABLED and Werror options in maintainer mode
See http://mail.gnome.org/archives/desktop-devel-list/2010-September/msg00023.html.
configure.ac | 4 +---
m4/na-maintainer-mode.m4 | 2 ++
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 56cdc88..3c02196 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,9 +95,7 @@ AC_PROG_MAKE_SET
GNOME_COMMON_INIT
GNOME_DOC_INIT
GNOME_MAINTAINER_MODE_DEFINES
-NA_GNOME_COMPILE_WARNINGS([error],[-ansi -Wno-overlength-strings -Wformat=2])
-AC_SUBST([AM_CPPFLAGS],["${AM_CPPFLAGS} ${DISABLE_DEPRECATED}"])
-AC_SUBST([AM_CPPFLAGS],["${AM_CPPFLAGS} -DGSEAL_ENABLED"])
+NA_GNOME_COMPILE_WARNINGS([],[-ansi -Wno-overlength-strings -Wformat=2])
AC_SUBST([AM_CFLAGS],["${AM_CFLAGS} ${WARN_CFLAGS}"])
# GLib marshaling
diff --git a/m4/na-maintainer-mode.m4 b/m4/na-maintainer-mode.m4
index d030624..aa178ee 100644
--- a/m4/na-maintainer-mode.m4
+++ b/m4/na-maintainer-mode.m4
@@ -33,5 +33,7 @@ dnl define NA_MAINTAINER_MODE
AC_DEFUN([NA_IS_MAINTAINER_MODE],[
if test "${USE_MAINTAINER_MODE}" = "yes"; then
AC_DEFINE([NA_MAINTAINER_MODE],[1],[Define to 1 if we are in maintainer mode])
+ AC_SUBST([AM_CPPFLAGS],["${AM_CPPFLAGS} ${DISABLE_DEPRECATED} -DGSEAL_ENABLED"])
+ AC_SUBST([AM_CFLAGS],["${AM_CFLAGS} -Werror"])
fi
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]