From 3f9ee1cd8575e05a9978ebbf3034f739baaa5f1c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Oct 2005 21:24:32 +0000 Subject: [PATCH] fixed unused parameter warnings in non-debug build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/notebook.cpp | 5 +++-- src/unix/sound.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index 07eb75b0fc..6b6b84c79a 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -207,7 +207,7 @@ wxString wxNotebook::GetPageText(size_t nPage) const return wxEmptyString; } -int wxNotebook::GetPageImage(size_t nPage) const +int wxNotebook::GetPageImage(size_t WXUNUSED_UNLESS_DEBUG(nPage)) const { wxASSERT( IS_VALID_PAGE(nPage) ); @@ -215,7 +215,8 @@ int wxNotebook::GetPageImage(size_t nPage) const return 0; } -bool wxNotebook::SetPageImage(size_t nPage, int WXUNUSED(nImage)) +bool wxNotebook::SetPageImage(size_t WXUNUSED_UNLESS_DEBUG(nPage), + int WXUNUSED(nImage)) { wxASSERT( IS_VALID_PAGE(nPage) ); diff --git a/src/unix/sound.cpp b/src/unix/sound.cpp index ce75572471..fbd9802383 100644 --- a/src/unix/sound.cpp +++ b/src/unix/sound.cpp @@ -447,7 +447,8 @@ wxSound::~wxSound() Free(); } -bool wxSound::Create(const wxString& fileName, bool isResource) +bool wxSound::Create(const wxString& fileName, + bool WXUNUSED_UNLESS_DEBUG(isResource)) { wxASSERT_MSG( !isResource, _T("Loading sound from resources is only supported on Windows") ); -- 2.45.2