]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress gcc warnings about class having private dtor and no friends
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Nov 2005 15:35:04 +0000 (15:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Nov 2005 15:35:04 +0000 (15:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/zipstrm.cpp

index b39c2856320a107cc7f50b6259ad356d07ea6188..03abd6b1ab0683b2f3e873e42d50c0c74ecdb500 100644 (file)
@@ -484,6 +484,8 @@ private:
     size_t m_size;
     size_t m_capacity;
     int m_ref;
+
+    wxSUPPRESS_GCC_PRIVATE_DTOR_WARNING(wxZipMemory)
 };
 
 wxZipMemory *wxZipMemory::Unique(size_t size)
@@ -558,12 +560,14 @@ public:
     bool IsEmpty() const { return m_entries.empty(); }
 
 private:
-    typedef wx__OffsetZipEntryMap::key_type key_type;
-
     ~wxZipWeakLinks() { wxASSERT(IsEmpty()); }
 
+    typedef wx__OffsetZipEntryMap::key_type key_type;
+
     int m_ref;
     wx__OffsetZipEntryMap m_entries;
+
+    wxSUPPRESS_GCC_PRIVATE_DTOR_WARNING(wxZipWeakLinks)
 };
 
 wxZipWeakLinks *wxZipWeakLinks::AddEntry(wxZipEntry *entry, wxFileOffset key)
@@ -1170,6 +1174,8 @@ private:
 
     int m_ref;
     wxZipOutputStream *m_stream;
+
+    wxSUPPRESS_GCC_PRIVATE_DTOR_WARNING(wxZipStreamLink)
 };