[pinpoint] disable deprecated warnings by default
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] disable deprecated warnings by default
- Date: Tue, 22 Sep 2015 23:42:56 +0000 (UTC)
commit 865960e2220b0e80f5547fce97e84c13e5a1e6b2
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Wed Sep 23 00:42:26 2015 +0100
disable deprecated warnings by default
Makefile.am | 2 +-
configure.ac | 19 +++++++++++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 723194e..cfa5f99 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
SUBDIRS=transitions
bin_PROGRAMS=pinpoint
-AM_CFLAGS = $(DEPS_CFLAGS) $(MAINTAINER_CFLAGS) -D_GNU_SOURCE -DPKGDATADIR=\"$(pkgdatadir)/\"
-DPINPOINT_SRCDIR=\"$(abs_top_srcdir)\"
+AM_CFLAGS = $(DEPS_CFLAGS) $(DEPRECATED_CFLAGS) $(MAINTAINER_CFLAGS) -D_GNU_SOURCE
-DPKGDATADIR=\"$(pkgdatadir)/\" -DPINPOINT_SRCDIR=\"$(abs_top_srcdir)\"
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
if USE_DAX
diff --git a/configure.ac b/configure.ac
index 3b476c8..b96de65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,20 @@ PINPOINT_DEPS="clutter-gtk-1.0 >= 1.6 clutter-1.0 >= 1.23.7 gio-2.0 >= 2.26 cair
AS_COMPILER_FLAGS([MAINTAINER_CFLAGS], [-Wall])
AC_SUBST(MAINTAINER_CFLAGS)
+# Deprecation warnings
+AC_ARG_ENABLE([deprecation-warnings],
+ [AS_HELP_STRING([--enable-deprecation-warning=@<:@no/yes@:>@],
+ [Whether to compile with deprecation warnings @<:@default=]no[@:>@])],
+ [],
+ [enable_deprecation_warnings=no])
+
+AS_CASE([$enable_deprecation_warnings],
+ [no], [DEPRECATED_CFLAGS="-DCLUTTER_DISABLE_DEPRECATION_WARNINGS"],
+ [yes], [DEPRECATED_CFLAGS=""],
+ [AC_MSG_ERROR([Unknown argument for --enable-deprecation-warnings])]
+)
+AC_SUBST([DEPRECATED_CFLAGS])
+
# PDF output support
AC_ARG_ENABLE([pdf],
[AS_HELP_STRING([--enable-pdf=@<:no/auto/yes:>@],
@@ -128,8 +142,9 @@ echo "Pinpoint"
echo""
echo " • General"
-echo " prefix: ${prefix}"
-echo " cflags: ${MAINTAINER_CFLAGS}"
+echo " prefix: ${prefix}"
+echo " cflags: ${MAINTAINER_CFLAGS}"
+echo " warnings: ${enable_deprecation_warnings}"
echo ""
echo " • Slides' background"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]