From: Yan, Zheng Date: Mon, 17 Aug 2015 02:51:58 +0000 (+0800) Subject: test_c_headers: don't use -Werror option for clang X-Git-Tag: v9.1.0~259^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=491d8939bb1867fbcc87a955dc5a9241bd8a4c9b;p=ceph.git test_c_headers: don't use -Werror option for clang When using clang to compile ceph, there are lots of warnings: clang: warning: argument unused during compilation: '-Wp,-D_FORTIFY_SOURCE=2' Signed-off-by: Yan, Zheng --- diff --git a/src/test/Makefile-client.am b/src/test/Makefile-client.am index aef841d15656..57eaa613a696 100644 --- a/src/test/Makefile-client.am +++ b/src/test/Makefile-client.am @@ -442,7 +442,6 @@ unittest_encoding_SOURCES = test/encoding.cc ceph_test_c_headers_SOURCES = test/test_c_headers.c ceph_test_c_headers_LDADD = $(LIBRADOS) $(LIBCEPHFS) ceph_test_c_headers_CFLAGS = $(AM_CFLAGS) \ - -Werror \ -Wstrict-prototypes \ -Wredundant-decls \ -Wall \ @@ -460,7 +459,7 @@ ceph_test_c_headers_CFLAGS = $(AM_CFLAGS) \ -Wold-style-definition \ -Wtype-limits if !CLANG -ceph_test_c_headers_CFLAGS += -Wold-style-declaration +ceph_test_c_headers_CFLAGS += -Werror -Wold-style-declaration endif # !CLANG bin_DEBUGPROGRAMS += ceph_test_c_headers