mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-30 16:38:38 +01:00
Get rid of some compiler warnings.
This commit is contained in:
@@ -246,9 +246,6 @@ int open_ep_mixers_byid(px_mixer *Px, wchar_t *deviceIn, wchar_t *deviceOut)
|
|||||||
IMMDeviceEnumerator *denum = NULL;
|
IMMDeviceEnumerator *denum = NULL;
|
||||||
IMMDevice *device = NULL;
|
IMMDevice *device = NULL;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
MMRESULT res;
|
|
||||||
LPWSTR idStr;
|
|
||||||
size_t idLen;
|
|
||||||
|
|
||||||
if (!initialize(Px)) {
|
if (!initialize(Px)) {
|
||||||
goto fail;
|
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)
|
void AudacityLogger::DoLogString(const wxChar *str, time_t t)
|
||||||
{
|
{
|
||||||
if (!wxIsMainThread()) {
|
if (!wxIsMainThread()) {
|
||||||
@@ -257,7 +258,7 @@ void AudacityLogger::Show(bool show)
|
|||||||
Flush();
|
Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityLogger::OnCloseWindow(wxCloseEvent & e)
|
void AudacityLogger::OnCloseWindow(wxCloseEvent & WXUNUSED(e))
|
||||||
{
|
{
|
||||||
#if defined(__WXMAC__)
|
#if defined(__WXMAC__)
|
||||||
// On the Mac, destroy the window rather than hiding it since the
|
// On the Mac, destroy the window rather than hiding it since the
|
||||||
@@ -269,13 +270,13 @@ void AudacityLogger::OnCloseWindow(wxCloseEvent & e)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityLogger::OnClose(wxCommandEvent & e)
|
void AudacityLogger::OnClose(wxCommandEvent & WXUNUSED(e))
|
||||||
{
|
{
|
||||||
wxCloseEvent dummy;
|
wxCloseEvent dummy;
|
||||||
OnCloseWindow(dummy);
|
OnCloseWindow(dummy);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityLogger::OnClear(wxCommandEvent & e)
|
void AudacityLogger::OnClear(wxCommandEvent & WXUNUSED(e))
|
||||||
{
|
{
|
||||||
mBuffer = wxEmptyString;
|
mBuffer = wxEmptyString;
|
||||||
|
|
||||||
@@ -284,7 +285,7 @@ void AudacityLogger::OnClear(wxCommandEvent & e)
|
|||||||
Flush();
|
Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityLogger::OnSave(wxCommandEvent & e)
|
void AudacityLogger::OnSave(wxCommandEvent & WXUNUSED(e))
|
||||||
{
|
{
|
||||||
wxString fName = _("log.txt");
|
wxString fName = _("log.txt");
|
||||||
|
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ bool Sequence::Paste(sampleCount s, const Sequence *src)
|
|||||||
return ConsistencyCheck(wxT("Paste branch one"));
|
return ConsistencyCheck(wxT("Paste branch one"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (b >= 0 && b < numBlocks
|
if ((b >= 0 ) && (b < (int)numBlocks)
|
||||||
&& ((mBlock->Item(b)->f->GetLength() + addedLen) < mMaxSamples)) {
|
&& ((mBlock->Item(b)->f->GetLength() + addedLen) < mMaxSamples)) {
|
||||||
// Special case: we can fit all of the new samples inside of
|
// Special case: we can fit all of the new samples inside of
|
||||||
// one block!
|
// one block!
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
LV2Effect.h
|
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.
|
License: GPL v2. See License.txt.
|
||||||
|
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ bool ChoiceEditor::EndEdit(int row, int col,
|
|||||||
int sel = Choice()->GetSelection();
|
int sel = Choice()->GetSelection();
|
||||||
|
|
||||||
// This can happen if the wxChoice control is displayed and the list of choices get changed
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,7 +123,6 @@ void wxNumValidatorBase::OnChar(wxKeyEvent& event)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
wxKeyEvent & e = event;
|
|
||||||
const int ch = event.GetUnicodeKey();
|
const int ch = event.GetUnicodeKey();
|
||||||
const int c = event.GetKeyCode();
|
const int c = event.GetKeyCode();
|
||||||
if ( c > WXK_START )
|
if ( c > WXK_START )
|
||||||
|
|||||||
Reference in New Issue
Block a user