Welcome! Log In Create A New Profile

Advanced

[PATCH] -Wno-parentheses-equality for Clang

Taro KOBAYASHI
June 19, 2016 10:14PM
# HG changeset patch
# User Taro Kobayashi <9re.3000@gmail.com>
# Date 1466387734 -32400
# Mon Jun 20 10:55:34 2016 +0900
# Node ID f693bcc8e11e63bcbcdafda1b31a9c6a438fa36e
# Parent 04d8d1f8564989509f9b03085df1af7618b44be8
With Werror and Wparentheses-equality option,
the following will be treated as error in Clang

src/core/nginx.c:941:19: error: equality comparison with extraneous parentheses
if (((*p) == '/')) {
~~~~~^~~~~~

diff -r 04d8d1f85649 -r f693bcc8e11e auto/cc/clang
--- a/auto/cc/clang Wed Jun 15 21:05:30 2016 +0100
+++ b/auto/cc/clang Mon Jun 20 10:55:34 2016 +0900
@@ -93,6 +93,8 @@
CFLAGS="$CFLAGS -Wno-deprecated-declarations"
fi

+CFLAGS="$CFLAGS -Wno-parentheses-equality"
+
# stop on warning
CFLAGS="$CFLAGS -Werror"

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] -Wno-parentheses-equality for Clang

Taro KOBAYASHI 411 June 19, 2016 10:14PM

Re: [PATCH] -Wno-parentheses-equality for Clang

Piotr Sikora 201 June 19, 2016 11:00PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready