]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: deprecated attribute has no argument 995/head
authorLoic Dachary <loic@dachary.org>
Wed, 25 Dec 2013 09:44:07 +0000 (10:44 +0100)
committerLoic Dachary <loic@dachary.org>
Wed, 25 Dec 2013 09:44:07 +0000 (10:44 +0100)
The deprecated attribute argument was introduced in gcc 4.5
http://gcc.gnu.org/gcc-4.5/changes.html and centos6 has a lower version.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/include/rados/librados.hpp

index 1804a5805d7fd283179c8499d6ffcc9d657dc848..2030fb15608d84a6c5b06a9a9c3f75a1ebc8506b 100644 (file)
@@ -103,7 +103,7 @@ namespace librados
     bool is_complete_and_cb();
     bool is_safe_and_cb();
     int get_return_value();
-    int get_version() __attribute__ ((deprecated ("use get_version64")));
+    int get_version() __attribute__ ((deprecated));
     uint64_t get_version64();
     void release();
     AioCompletionImpl *pc;
@@ -781,7 +781,7 @@ namespace librados
     int aio_operate(const std::string& oid, AioCompletion *c,
                    ObjectReadOperation *op, snap_t snapid, int flags,
                    bufferlist *pbl)
-      __attribute__ ((deprecated ("use aio_operate without snapid argument")));
+      __attribute__ ((deprecated));
 
     int aio_operate(const std::string& oid, AioCompletion *c,
                    ObjectReadOperation *op, int flags,