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:
@@ -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!"));
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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 ;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user