diff options
author | Nick Schermer <nick@xfce.org> | 2011-04-25 11:05:15 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2011-04-25 11:05:15 +0200 |
commit | 5927409dd1d42b39e25d4b813b8b2f00d26b001a (patch) | |
tree | e6a2d686869d00803a288bf5d01a421754f3cd66 | |
parent | 8bfa89183b4e27db241b1402bd53a0d5f80f6af3 (diff) | |
download | xfce4-dev-tools-5927409dd1d42b39e25d4b813b8b2f00d26b001a.tar.gz |
Skip -Wredundant-decls on OpenBSD.
signal.h has an inline that redeclares __errno.
-rw-r--r-- | 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" |