From 9149eec8953ee7363fe21a5771d85fb290b7e002 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Mon, 16 Jan 2017 18:24:00 +0000 Subject: [PATCH] unused variable error could mistakenly note that brotli isn't available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1779077 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/config.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/filters/config.m4 b/modules/filters/config.m4 index fd230c01c2..2d83608c00 100644 --- a/modules/filters/config.m4 +++ b/modules/filters/config.m4 @@ -155,7 +155,8 @@ APACHE_MODULE(brotli, Brotli compression support, , , most, [ AC_MSG_CHECKING([for Brotli library >= 1.0.0 via prefix]) AC_TRY_COMPILE( [#include ],[ -const uint8_t *o = BrotliEncoderTakeOutput((BrotliEncoderState*)0, (size_t*)0);], +const uint8_t *o = BrotliEncoderTakeOutput((BrotliEncoderState*)0, (size_t*)0); +if (o) return *o;], [AC_MSG_RESULT(yes) ap_brotli_found=yes ap_brotli_cflags="-I${ap_brotli_base}/include" -- 2.50.1