From 491d8939bb1867fbcc87a955dc5a9241bd8a4c9b Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Mon, 17 Aug 2015 10:51:58 +0800 Subject: [PATCH] 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 --- src/test/Makefile-client.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/Makefile-client.am b/src/test/Makefile-client.am index aef841d156560..57eaa613a6965 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 -- 2.39.5