[Libreoffice-commits] core.git: configure.ac
Stephan Bergmann
sbergman at redhat.com
Mon Mar 25 01:23:23 PDT 2013
configure.ac | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit ede7627d241f6f698d55411c3815c0288ce48b07
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Mar 25 09:22:13 2013 +0100
Adapt pragma GCC diagnostic checks to GCC (did work well with Clang, though)
Change-Id: I6735505f83a1145bca3efeeee1e8c6ce33dac434
diff --git a/configure.ac b/configure.ac
index a12018a..0e28c65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5567,8 +5567,8 @@ if test "$GCC" = "yes"; then
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror -Wunused"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
- #pragma GCC diagnostic ignored "-Wunused"
- static void dummy() {}
+ #pragma GCC diagnostic ignored "-Wunused-parameter"
+ void dummy(int n) {}
])], [
AC_DEFINE([HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY],[1])
AC_MSG_RESULT([yes])
@@ -5580,8 +5580,8 @@ if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -Werror -Wunused"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused"
- static void dummy() {}
+ #pragma GCC diagnostic ignored "-Wunused-parameter"
+ void dummy(int n) {}
#pragma GCC diagnostic pop
])], [
AC_DEFINE([HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE],[1])
More information about the Libreoffice-commits
mailing list