From a61f6c2484a88cfda55d1fc0882c9bf460ecae50 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 15 Jun 2013 14:38:45 +0200 Subject: [PATCH] Hide some compiler warning that are known and accepted 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. [crm: Add -Wno-deprecated-declarations too] Signed-off-by: Christophe CURIS --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 2f04b02c..10661134 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,15 @@ 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]) + AX_CFLAGS_GCC_OPTION([-Wno-deprecated-declarations]) ]) dnl Platform-specific Makefile setup -- 2.11.4.GIT