]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
fix unmatched struct versus class warnings
authorKefu Chai <kchai@redhat.com>
Fri, 27 Feb 2015 08:42:48 +0000 (16:42 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 27 Feb 2015 08:47:52 +0000 (16:47 +0800)
these warnings come from clang++

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/rados/librados.hpp
src/librados/ListObjectImpl.h
src/msg/simple/PipeConnection.h

index 1818fd34a3933ff310acc545b1748d540aa75787..92aa9f66e3a2fea1634b96192ed9ac97b7d176e5 100644 (file)
@@ -30,8 +30,8 @@ namespace librados
   struct ObjListCtx;
   struct PoolAsyncCompletionImpl;
   class RadosClient;
-  class ListObjectImpl;
-  struct NObjectIteratorImpl;
+  struct ListObjectImpl;
+  class NObjectIteratorImpl;
 
   typedef void *list_ctx_t;
   typedef uint64_t auid_t;
index 08754dfad0bb2b8eb656580ccf05478ed9335ffb..fdbe509d154f80646fcb230932b9ab1813e35dcb 100644 (file)
@@ -40,9 +40,9 @@ inline std::ostream& operator<<(std::ostream& out, const struct ListObjectImpl&
   return out;
 }
 
-class ObjListCtx;
+struct ObjListCtx;
 
-struct NObjectIteratorImpl {
+class NObjectIteratorImpl {
   public:
     NObjectIteratorImpl() {}
     ~NObjectIteratorImpl();
@@ -57,7 +57,7 @@ struct NObjectIteratorImpl {
     NObjectIteratorImpl operator++(int); // Postincrement
     const ListObject *get_listobjectp() { return &cur_obj; }
     friend class IoCtx;
-    friend class ListObjectImpl;
+    friend struct ListObjectImpl;
     //friend class ListObject;
     friend class NObjectIterator;
 
index 00f6d0e16d3f6432e22fe97f7fde4d45a9b52ac9..9e27ec4a58dd2072310ba952bf88af87f7345be8 100644 (file)
@@ -19,7 +19,7 @@
 
 class Pipe;
 
-struct PipeConnection : public Connection {
+class PipeConnection : public Connection {
   Pipe* pipe;
 
   friend class boost::intrusive_ptr<PipeConnection>;