]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: silence GCC warning 25460/head
authorKefu Chai <kchai@redhat.com>
Mon, 10 Dec 2018 07:57:30 +0000 (15:57 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Dec 2018 07:57:31 +0000 (15:57 +0800)
otherwise we will have following warnings:

[1/1] Cythonizing rados.pyx
warning: rados.pyx:91:4: 'rados_t' redeclared
warning: rados.pyx:92:4: 'rados_config_t' redeclared
warning: rados.pyx:93:4: 'rados_ioctx_t' redeclared

these types are already defined by librados.h, so no need to define them
again in rados.pyx .

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/rados.pyx

index 6b3a0e858713b8b29de7c25d952c553db708f088..f65b10d01389dec685076bcbf7182021e5d3b999 100644 (file)
@@ -88,9 +88,6 @@ cdef extern from "rados/librados.h" nogil:
 
     cdef uint64_t _LIBRADOS_SNAP_HEAD "LIBRADOS_SNAP_HEAD"
 
-    ctypedef void* rados_t
-    ctypedef void* rados_config_t
-    ctypedef void* rados_ioctx_t
     ctypedef void* rados_xattrs_iter_t
     ctypedef void* rados_omap_iter_t
     ctypedef void* rados_list_ctx_t