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>
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 \
-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