From 91e780b5f2d3c9cc1a53d2eddf3fde985121dcb7 Mon Sep 17 00:00:00 2001 From: Sebastien Ponce Date: Fri, 13 Mar 2015 23:06:30 +0100 Subject: [PATCH] Compatibility code for different versions of Ceph The interface concerning object listing has changed in Ceph between giant and hammer releases. This commit allows to compile against both by keeping the old interface and disabling the deprecation warnings --- src/XrdCeph.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/XrdCeph.cmake b/src/XrdCeph.cmake index bb70427cc70..ace2f5921f5 100644 --- a/src/XrdCeph.cmake +++ b/src/XrdCeph.cmake @@ -15,6 +15,11 @@ add_library( SHARED XrdCeph/XrdCephPosix.cc XrdCeph/XrdCephPosix.hh ) +# needed during the transition between ceph giant and ceph hammer +# for object listing API +set_property(SOURCE XrdCeph/XrdCephPosix.cc + PROPERTY COMPILE_FLAGS " -Wno-deprecated-declarations") + target_link_libraries( XrdCephPosix ${RADOS_LIBS} )