[PATCH] Configure: fix build with -Werror=unused-value

Maxim Dounin mdounin at mdounin.ru
Thu Jul 7 13:58:48 UTC 2016


Hello!

On Mon, Jun 27, 2016 at 03:59:18PM -0700, Piotr Sikora wrote:

> # HG changeset patch
> # User Piotr Sikora <piotrsikora at google.com>
> # Date 1467064802 25200
> #      Mon Jun 27 15:00:02 2016 -0700
> # Node ID f5ece83dbcc4c46bcda51511e4fbf8fb90aa9432
> # Parent  d452cb27639f714bc43b7f3ede417e3e7f8efdd6
> Configure: fix build with -Werror=unused-value.
> 
> Signed-off-by: Piotr Sikora <piotrsikora at google.com>
> 
> diff -r d452cb27639f -r f5ece83dbcc4 auto/cc/conf
> --- a/auto/cc/conf
> +++ b/auto/cc/conf
> @@ -231,7 +231,7 @@ if [ "$NGX_PLATFORM" != win32 ]; then
>      ngx_feature_incs=
>      ngx_feature_path=
>      ngx_feature_libs=
> -    ngx_feature_test="__builtin_bswap64(0)"
> +    ngx_feature_test="if (__builtin_bswap64(0)) return 1"
>      . auto/feature

Committed, thanks.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list