Welcome! Log In Create A New Profile

Advanced

[nginx] Configure: enabled -Werror for clang.

Ruslan Ermilov
January 27, 2014 03:34PM
details: http://hg.nginx.org/nginx/rev/c86dd32573c0
branches:
changeset: 5539:c86dd32573c0
user: Ruslan Ermilov <ru@nginx.com>
date: Tue Jan 28 00:31:31 2014 +0400
description:
Configure: enabled -Werror for clang.

Modern clang versions seem to no longer produce warnings for
system headers on Linux (at least clang 3.3 works), hence the
change. For older versions --with-cc-opt="-Wno-error" can be
used as a workaround.

diffstat:

auto/cc/clang | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a387ce36744a -r c86dd32573c0 auto/cc/clang
--- a/auto/cc/clang Thu Jan 23 22:09:59 2014 +0900
+++ b/auto/cc/clang Tue Jan 28 00:31:31 2014 +0400
@@ -89,7 +89,7 @@ CFLAGS="$CFLAGS -Wconditional-uninitiali
CFLAGS="$CFLAGS -Wno-unused-parameter"

# stop on warning
-#CFLAGS="$CFLAGS -Werror"
+CFLAGS="$CFLAGS -Werror"

# debug
CFLAGS="$CFLAGS -g"

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

[nginx] Configure: enabled -Werror for clang.

Ruslan Ermilov 977 January 27, 2014 03:34PM



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

Online Users

Guests: 234
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