1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

Get rid of some compiler warnings.

This commit is contained in:
v.audacity 2013-10-31 22:28:21 +00:00
parent 95215dd0e1
commit 8408eaf52a
6 changed files with 8 additions and 11 deletions

View File

@ -246,9 +246,6 @@ int open_ep_mixers_byid(px_mixer *Px, wchar_t *deviceIn, wchar_t *deviceOut)
IMMDeviceEnumerator *denum = NULL;
IMMDevice *device = NULL;
HRESULT hr;
MMRESULT res;
LPWSTR idStr;
size_t idLen;
if (!initialize(Px)) {
goto fail;

View File

@ -68,6 +68,7 @@ void AudacityLogger::Flush()
}
}
// ANSWER-ME: This is unused. Can it be deleted? If not, note that t param is unused.
void AudacityLogger::DoLogString(const wxChar *str, time_t t)
{
if (!wxIsMainThread()) {
@ -257,7 +258,7 @@ void AudacityLogger::Show(bool show)
Flush();
}
void AudacityLogger::OnCloseWindow(wxCloseEvent & e)
void AudacityLogger::OnCloseWindow(wxCloseEvent & WXUNUSED(e))
{
#if defined(__WXMAC__)
// On the Mac, destroy the window rather than hiding it since the
@ -269,13 +270,13 @@ void AudacityLogger::OnCloseWindow(wxCloseEvent & e)
#endif
}
void AudacityLogger::OnClose(wxCommandEvent & e)
void AudacityLogger::OnClose(wxCommandEvent & WXUNUSED(e))
{
wxCloseEvent dummy;
OnCloseWindow(dummy);
}
void AudacityLogger::OnClear(wxCommandEvent & e)
void AudacityLogger::OnClear(wxCommandEvent & WXUNUSED(e))
{
mBuffer = wxEmptyString;
@ -284,7 +285,7 @@ void AudacityLogger::OnClear(wxCommandEvent & e)
Flush();
}
void AudacityLogger::OnSave(wxCommandEvent & e)
void AudacityLogger::OnSave(wxCommandEvent & WXUNUSED(e))
{
wxString fName = _("log.txt");

View File

@ -506,7 +506,7 @@ bool Sequence::Paste(sampleCount s, const Sequence *src)
return ConsistencyCheck(wxT("Paste branch one"));
}
if (b >= 0 && b < numBlocks
if ((b >= 0 ) && (b < (int)numBlocks)
&& ((mBlock->Item(b)->f->GetLength() + addedLen) < mMaxSamples)) {
// Special case: we can fit all of the new samples inside of
// one block!

View File

@ -4,7 +4,7 @@
LV2Effect.h
Audacity(R) is copyright (c) 1999-2008 Audacity Team.
Audacity(R) is copyright (c) 1999-2013 Audacity Team.
License: GPL v2. See License.txt.
*********************************************************************/

View File

@ -301,7 +301,7 @@ bool ChoiceEditor::EndEdit(int row, int col,
int sel = Choice()->GetSelection();
// This can happen if the wxChoice control is displayed and the list of choices get changed
if (sel < 0 || sel >= mChoices.GetCount())
if ((sel < 0) || (sel >= (int)(mChoices.GetCount())))
{
return false;
}

View File

@ -123,7 +123,6 @@ void wxNumValidatorBase::OnChar(wxKeyEvent& event)
return;
#if wxUSE_UNICODE
wxKeyEvent & e = event;
const int ch = event.GetUnicodeKey();
const int c = event.GetKeyCode();
if ( c > WXK_START )