From: Christophe CURIS <[email protected]>

Because we have to use some X functions marked as deprecated to
ensure portability, we prefer to hide the warnings from standard
users, and keep them only for dev team.

Signed-off-by: Christophe CURIS <[email protected]>
---
 configure.ac |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2f04b02..d2e145d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,6 +104,14 @@ AS_IF([test "x$debug" = "xyes"],
      dnl
      dnl Use of 'sizeof()' on inappropriate pointer types
      AX_CFLAGS_GCC_OPTION([-Wpointer-arith])
+], [dnl
+     dnl When debug not enabled, we try to avoid some non-necessary
+     dnl messages from the compiler
+     dnl
+     dnl To support legacy X servers, we have sometime to use
+     dnl functions marked as deprecated. We do not wish our users
+     dnl to be worried about it
+     AX_CFLAGS_GCC_OPTION([-Wno-deprecated])
 ])
 
 dnl Platform-specific Makefile setup
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to