1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

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 <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-15 14:38:45 +02:00
committed by Carlos R. Mafra
parent 39ecbc1084
commit a61f6c2484

View File

@@ -104,6 +104,15 @@ AS_IF([test "x$debug" = "xyes"],
dnl dnl
dnl Use of 'sizeof()' on inappropriate pointer types dnl Use of 'sizeof()' on inappropriate pointer types
AX_CFLAGS_GCC_OPTION([-Wpointer-arith]) 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 dnl Platform-specific Makefile setup