From f0c785cc1dfbf67bdf579eb0585d4cdf4d63f2b8 Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Tue, 19 Nov 2013 10:22:40 -0500 Subject: [PATCH] Fix configuring Prelude with -Werror Running with: CFLAGS="-Werror" ./configure would fail when configuring libprelude because of an unused-result warning. Ignore that one warning. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 0b29eeb277..51a56f667d 100644 --- a/configure.ac +++ b/configure.ac @@ -761,6 +761,10 @@ # prelude AC_ARG_ENABLE(prelude, AS_HELP_STRING([--enable-prelude], [Enable Prelude support for alerts]),,[enable_prelude=no]) + # Prelude doesn't work with -Werror + STORECFLAGS="${CFLAGS}" + CFLAGS="${CFLAGS} -Wno-error=unused-result" + AS_IF([test "x$enable_prelude" = "xyes"], [ CFLAGS="$CFLAGS -DPRELUDE" AM_PATH_LIBPRELUDE(0.9.9, , AC_MSG_ERROR(Cannot find libprelude: Is libprelude-config in the path?), no) @@ -776,6 +780,8 @@ LDFLAGS="${LDFLAGS} ${LIBPRELUDE_LIBS}" fi ]) + CFLAGS="${STORECFLAGS}" + # libnet AC_ARG_WITH(libnet_includes,