[file-roller/gnome-3-20] show deprecated declarations warnings only when using --enable-debug
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/gnome-3-20] show deprecated declarations warnings only when using --enable-debug
- Date: Wed, 17 Aug 2016 14:04:11 +0000 (UTC)
commit a7e9ba81998855b74897f89c37d278f1d872e771
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Aug 17 15:59:11 2016 +0200
show deprecated declarations warnings only when using --enable-debug
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ce31736..41fcb74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,8 @@ AC_ARG_ENABLE(debug,
if test x$ENABLE_DEBUG = xyes; then
AC_DEFINE(DEBUG, 1, [enable compilation of debugging messages])
CFLAGS="$CFLAGS -g -O0 -DDEBUG"
+else
+ CFLAGS="$CFLAGS -Wno-deprecated-declarations"
fi
dnl ===========================================================================
@@ -267,8 +269,6 @@ AC_ARG_ENABLE(deprecated,
[disable_deprecated=no])
if test "x$disable_deprecated" = "xyes"; then
DISABLE_DEPRECATED="-DGSEAL_ENABLE -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
-else
- CFLAGS="$CFLAGS -Wno-deprecated-declarations"
fi
AC_SUBST(DISABLE_DEPRECATED)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]