]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_c_headers: don't use -Werror option for clang
authorYan, Zheng <zyan@redhat.com>
Mon, 17 Aug 2015 02:51:58 +0000 (10:51 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 08:00:29 +0000 (16:00 +0800)
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 <zyan@redhat.com>
src/test/Makefile-client.am

index aef841d1565601d96ca3436519ba75b055c2ba64..57eaa613a69656c11a6c3406b12b1cb9a9b5f17d 100644 (file)
@@ -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