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:
parent
95215dd0e1
commit
8408eaf52a
@ -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;
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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!
|
||||
|
@ -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.
|
||||
|
||||
*********************************************************************/
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user