[nginx] Configure: enabled -Werror for clang.
Ruslan Ermilov
ru at nginx.com
Mon Jan 27 20:33:37 UTC 2014
details: http://hg.nginx.org/nginx/rev/c86dd32573c0
branches:
changeset: 5539:c86dd32573c0
user: Ruslan Ermilov <ru at 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"
More information about the nginx-devel
mailing list