From 0a81a01a46fb807eb93f0a3c76af1c6e35372f5a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 2 Nov 2007 22:07:26 +0000 Subject: [PATCH] fix unused parameters warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/mimetmac.cpp | 8 ++++---- src/mac/carbon/thread.cpp | 4 ++-- src/mac/corefoundation/cfstring.cpp | 4 ++-- src/mac/corefoundation/utilsexc_base.cpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mac/carbon/mimetmac.cpp b/src/mac/carbon/mimetmac.cpp index 9265887d3c..c06fb8775e 100644 --- a/src/mac/carbon/mimetmac.cpp +++ b/src/mac/carbon/mimetmac.cpp @@ -341,7 +341,7 @@ pascal OSErr FSpGetFullPath( const FSSpec *spec, // // debug helper -inline void wxLogMimeDebug(const wxChar* szMsg, OSStatus status) +inline void wxLogMimeDebug(const wxChar* WXUNUSED_UNLESS_DEBUG(szMsg), OSStatus WXUNUSED_UNLESS_DEBUG(status)) { wxLogDebug(wxString::Format(wxT("%s LINE:%i OSERROR:%i"), szMsg, __LINE__, (int)status)); } @@ -349,14 +349,14 @@ inline void wxLogMimeDebug(const wxChar* szMsg, OSStatus status) // in case we're compiling in non-GUI mode class WXDLLEXPORT wxIcon; -bool wxFileTypeImpl::SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt) +bool wxFileTypeImpl::SetCommand(const wxString& WXUNUSED(cmd), const wxString& WXUNUSED(verb), bool WXUNUSED(overwriteprompt)) { wxASSERT_MSG( m_manager != NULL , wxT("Bad wxFileType") ); return false; } -bool wxFileTypeImpl::SetDefaultIcon(const wxString& strIcon, int index) +bool wxFileTypeImpl::SetDefaultIcon(const wxString& WXUNUSED(strIcon), int WXUNUSED(index)) { wxASSERT_MSG( m_manager != NULL , wxT("Bad wxFileType") ); @@ -608,7 +608,7 @@ size_t wxFileTypeImpl::GetAllCommands(wxArrayString * verbs, return ulCount; } -void wxMimeTypesManagerImpl::Initialize(int mailcapStyles, const wxString& extraDir) +void wxMimeTypesManagerImpl::Initialize(int WXUNUSED(mailcapStyles), const wxString& WXUNUSED(extraDir)) { wxASSERT_MSG(m_hIC == NULL, wxT("Already initialized wxMimeTypesManager!")); diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index cacf2e5e35..2137fcfff3 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/thread.cpp @@ -430,7 +430,7 @@ private: bool m_isOk ; }; -wxMutexInternal::wxMutexInternal( wxMutexType mutexType ) +wxMutexInternal::wxMutexInternal( wxMutexType WXUNUSED(mutexType) ) { m_isOk = false; m_critRegion = kInvalidID; @@ -1278,7 +1278,7 @@ unsigned long wxThread::GetCurrentId() return (unsigned long)MPCurrentTaskID(); } -bool wxThread::SetConcurrency( size_t level ) +bool wxThread::SetConcurrency( size_t WXUNUSED(level) ) { // Cannot be set in MacOS. return false; diff --git a/src/mac/corefoundation/cfstring.cpp b/src/mac/corefoundation/cfstring.cpp index 8571f13097..541cef0c5b 100644 --- a/src/mac/corefoundation/cfstring.cpp +++ b/src/mac/corefoundation/cfstring.cpp @@ -596,7 +596,7 @@ wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding) // // converts this string into a carbon foundation string with optional pc 2 mac encoding -void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding ) +void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding WXUNUSED_IN_UNICODE(encoding) ) { Release() ; if (st.IsEmpty()) @@ -629,7 +629,7 @@ void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding ) m_release = true ; } -wxString wxMacCFStringHolder::AsString(wxFontEncoding encoding) +wxString wxMacCFStringHolder::AsString(wxFontEncoding WXUNUSED_IN_UNICODE(encoding)) { if ( m_cfs == NULL ) return wxEmptyString ; diff --git a/src/mac/corefoundation/utilsexc_base.cpp b/src/mac/corefoundation/utilsexc_base.cpp index f706f4fb5f..09c7d8f1bc 100644 --- a/src/mac/corefoundation/utilsexc_base.cpp +++ b/src/mac/corefoundation/utilsexc_base.cpp @@ -61,7 +61,7 @@ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ long wxMacExecute(wxChar **argv, int flags, - wxProcess *process) + wxProcess *WXUNUSED(process)) { // Semi-macros used for return value of wxMacExecute const long errorCode = ((flags & wxEXEC_SYNC) ? -1 : 0); -- 2.45.2