From: Vadim Zeitlin Date: Wed, 30 Sep 2009 16:38:28 +0000 (+0000) Subject: Fix harmless unused parameters warnings. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9a78f7856de686581ef77b45f3ddb136d8a907d5 Fix harmless unused parameters warnings. Also assert in the not implemented wxSound methods instead of silently returning false. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/core/sound.cpp b/src/osx/core/sound.cpp index fb5ef88501..fd9d6d4b76 100644 --- a/src/osx/core/sound.cpp +++ b/src/osx/core/sound.cpp @@ -61,7 +61,9 @@ wxOSXAudioToolboxSoundData::~wxOSXAudioToolboxSoundData() DoStop(); } -void wxOSXAudioToolboxSoundData::CompletionCallback(SystemSoundID mySSID, void * soundRef) +void +wxOSXAudioToolboxSoundData::CompletionCallback(SystemSoundID WXUNUSED(mySSID), + void * soundRef) { wxOSXAudioToolboxSoundData* data = (wxOSXAudioToolboxSoundData*) soundRef; @@ -124,16 +126,16 @@ bool wxOSXAudioToolboxSoundData::Play(unsigned flags) return true; } -bool wxSound::Create(int size, const wxByte* data) +bool wxSound::Create(int WXUNUSED(size), const wxByte* WXUNUSED(data)) { + wxFAIL_MSG( "not implemented" ); + return false; } bool wxSound::Create(const wxString& fileName, bool isResource) { - if ( isResource ) - return false; - + wxCHECK_MSG( !isResource, false, "not implemented" ); m_data = new wxOSXAudioToolboxSoundData(fileName); return true;