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
This commit is contained in:
Vadim Zeitlin 2009-09-30 16:38:28 +00:00
parent f629f37a82
commit 9a78f7856d

View File

@ -61,7 +61,9 @@ wxOSXAudioToolboxSoundData::~wxOSXAudioToolboxSoundData()
DoStop(); DoStop();
} }
void wxOSXAudioToolboxSoundData::CompletionCallback(SystemSoundID mySSID, void * soundRef) void
wxOSXAudioToolboxSoundData::CompletionCallback(SystemSoundID WXUNUSED(mySSID),
void * soundRef)
{ {
wxOSXAudioToolboxSoundData* data = (wxOSXAudioToolboxSoundData*) soundRef; wxOSXAudioToolboxSoundData* data = (wxOSXAudioToolboxSoundData*) soundRef;
@ -124,16 +126,16 @@ bool wxOSXAudioToolboxSoundData::Play(unsigned flags)
return true; 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; return false;
} }
bool wxSound::Create(const wxString& fileName, bool isResource) bool wxSound::Create(const wxString& fileName, bool isResource)
{ {
if ( isResource ) wxCHECK_MSG( !isResource, false, "not implemented" );
return false;
m_data = new wxOSXAudioToolboxSoundData(fileName); m_data = new wxOSXAudioToolboxSoundData(fileName);
return true; return true;