fix unused parameters warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-02 22:07:26 +00:00
parent 6f457a7735
commit 0a81a01a46
4 changed files with 9 additions and 9 deletions

View File

@@ -341,7 +341,7 @@ pascal OSErr FSpGetFullPath( const FSSpec *spec,
// //
// debug helper // 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)); 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 // in case we're compiling in non-GUI mode
class WXDLLEXPORT wxIcon; 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") ); wxASSERT_MSG( m_manager != NULL , wxT("Bad wxFileType") );
return false; 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") ); wxASSERT_MSG( m_manager != NULL , wxT("Bad wxFileType") );
@@ -608,7 +608,7 @@ size_t wxFileTypeImpl::GetAllCommands(wxArrayString * verbs,
return ulCount; 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!")); wxASSERT_MSG(m_hIC == NULL, wxT("Already initialized wxMimeTypesManager!"));

View File

@@ -430,7 +430,7 @@ private:
bool m_isOk ; bool m_isOk ;
}; };
wxMutexInternal::wxMutexInternal( wxMutexType mutexType ) wxMutexInternal::wxMutexInternal( wxMutexType WXUNUSED(mutexType) )
{ {
m_isOk = false; m_isOk = false;
m_critRegion = kInvalidID; m_critRegion = kInvalidID;
@@ -1278,7 +1278,7 @@ unsigned long wxThread::GetCurrentId()
return (unsigned long)MPCurrentTaskID(); return (unsigned long)MPCurrentTaskID();
} }
bool wxThread::SetConcurrency( size_t level ) bool wxThread::SetConcurrency( size_t WXUNUSED(level) )
{ {
// Cannot be set in MacOS. // Cannot be set in MacOS.
return false; return false;

View File

@@ -596,7 +596,7 @@ wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding)
// //
// converts this string into a carbon foundation string with optional pc 2 mac 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() ; Release() ;
if (st.IsEmpty()) if (st.IsEmpty())
@@ -629,7 +629,7 @@ void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding )
m_release = true ; m_release = true ;
} }
wxString wxMacCFStringHolder::AsString(wxFontEncoding encoding) wxString wxMacCFStringHolder::AsString(wxFontEncoding WXUNUSED_IN_UNICODE(encoding))
{ {
if ( m_cfs == NULL ) if ( m_cfs == NULL )
return wxEmptyString ; return wxEmptyString ;

View File

@@ -61,7 +61,7 @@
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
long wxMacExecute(wxChar **argv, long wxMacExecute(wxChar **argv,
int flags, int flags,
wxProcess *process) wxProcess *WXUNUSED(process))
{ {
// Semi-macros used for return value of wxMacExecute // Semi-macros used for return value of wxMacExecute
const long errorCode = ((flags & wxEXEC_SYNC) ? -1 : 0); const long errorCode = ((flags & wxEXEC_SYNC) ? -1 : 0);