You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2017/01/16 18:24:00 UTC
svn commit: r1779077 - /httpd/httpd/trunk/modules/filters/config.m4
Author: jim
Date: Mon Jan 16 18:24:00 2017
New Revision: 1779077
URL: http://svn.apache.org/viewvc?rev=1779077&view=rev
Log:
unused variable error could mistakenly note that brotli isn't available.
Modified:
httpd/httpd/trunk/modules/filters/config.m4
Modified: httpd/httpd/trunk/modules/filters/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/config.m4?rev=1779077&r1=1779076&r2=1779077&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/config.m4 (original)
+++ httpd/httpd/trunk/modules/filters/config.m4 Mon Jan 16 18:24:00 2017
@@ -155,7 +155,8 @@ APACHE_MODULE(brotli, Brotli compression
AC_MSG_CHECKING([for Brotli library >= 1.0.0 via prefix])
AC_TRY_COMPILE(
[#include <brotli/encode.h>],[
-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"