From: Jim Jagielski Date: Mon, 16 Jan 2017 18:24:00 +0000 (+0000) Subject: unused variable error could mistakenly note that brotli isn't available. X-Git-Tag: 2.5.0-alpha~784 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9149eec8953ee7363fe21a5771d85fb290b7e002;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/filters/config.m4 b/modules/filters/config.m4 index fd230c01c29..2d83608c004 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"