[Xfce4-commits] <xfce4-dev-tools:master> Skip -Wredundant-decls on OpenBSD.
Nick Schermer
noreply at xfce.org
Mon Apr 25 12:00:01 CEST 2011
Updating branch refs/heads/master
to 5927409dd1d42b39e25d4b813b8b2f00d26b001a (commit)
from 8bfa89183b4e27db241b1402bd53a0d5f80f6af3 (commit)
commit 5927409dd1d42b39e25d4b813b8b2f00d26b001a
Author: Nick Schermer <nick at xfce.org>
Date: Mon Apr 25 11:05:15 2011 +0200
Skip -Wredundant-decls on OpenBSD.
signal.h has an inline that redeclares __errno.
m4macros/xdt-features.m4 | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4
index c790411..eb017b0 100644
--- a/m4macros/xdt-features.m4
+++ b/m4macros/xdt-features.m4
@@ -74,7 +74,7 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]),
-Wno-missing-field-initializers \
-Wno-unused-parameter -Wold-style-definition \
-Wdeclaration-after-statement \
- -Wmissing-declarations -Wredundant-decls \
+ -Wmissing-declarations \
-Wmissing-noreturn -Wshadow -Wpointer-arith \
-Wcast-align -Wformat-security \
-Winit-self -Wmissing-include-dirs -Wundef \
@@ -85,6 +85,11 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]),
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector"
fi
+ dnl # signal.h inline is crapy on openbsd
+ if test x`uname` != x"OpenBSD"; then
+ xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -Wredundant-decls"
+ fi
+
if test x"$enable_debug" = x"full"; then
AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g -Werror"
More information about the Xfce4-commits
mailing list