]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress (harmless) unused parameter warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Dec 2008 22:48:25 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Dec 2008 22:48:25 +0000 (22:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datavcmn.cpp

index 567eb55d576e77b8216ec6086b891946731644c4..5b7205f3d7c265c598b38c6e825c82914c3e5ed0 100644 (file)
@@ -851,6 +851,12 @@ wxDataViewColumnBase::wxDataViewColumnBase(const wxString& title,
 
     // NOTE: the wxDataViewColumn's ctor must store the width, align, flags
     //       parameters inside the native control!
+#ifndef wxHAS_GENERIC_DATAVIEWCTRL
+    wxUnusedVar(title);
+    wxUnusedVar(width);
+    wxUnusedVar(align);
+    wxUnusedVar(flags);
+#endif // !wxHAS_GENERIC_DATAVIEWCTRL
 }
 
 wxDataViewColumnBase::wxDataViewColumnBase(const wxBitmap& bitmap,
@@ -869,6 +875,12 @@ wxDataViewColumnBase::wxDataViewColumnBase(const wxBitmap& bitmap,
     m_model_column = model_column;
     m_owner = NULL;
     m_renderer->SetOwner( (wxDataViewColumn*) this );
+
+#ifndef wxHAS_GENERIC_DATAVIEWCTRL
+    wxUnusedVar(width);
+    wxUnusedVar(align);
+    wxUnusedVar(flags);
+#endif // !wxHAS_GENERIC_DATAVIEWCTRL
 }
 
 wxDataViewColumnBase::~wxDataViewColumnBase()