From c1eb1de1bd43efdac7e012512d5dc79b2c553f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Wed, 27 Jan 2016 11:45:54 +1100 Subject: [PATCH] Fix remaining unused parameters --- src/audio/AudioThread.cpp | 2 +- src/forms/SDRDevices/SDRDeviceAdd.cpp | 6 +++--- src/ui/UITestCanvas.cpp | 2 +- src/visual/ScopeCanvas.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/audio/AudioThread.cpp b/src/audio/AudioThread.cpp index 77c5047..cfa97fa 100644 --- a/src/audio/AudioThread.cpp +++ b/src/audio/AudioThread.cpp @@ -49,7 +49,7 @@ void AudioThread::deviceCleanup() { } } -static int audioCallback(void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, +static int audioCallback(void *outputBuffer, void * /* inputBuffer */, unsigned int nBufferFrames, double /* streamTime */, RtAudioStreamStatus status, void *userData) { AudioThread *src = (AudioThread *) userData; float *out = (float*) outputBuffer; diff --git a/src/forms/SDRDevices/SDRDeviceAdd.cpp b/src/forms/SDRDevices/SDRDeviceAdd.cpp index 2a2e808..e7bcd39 100644 --- a/src/forms/SDRDevices/SDRDeviceAdd.cpp +++ b/src/forms/SDRDevices/SDRDeviceAdd.cpp @@ -21,7 +21,7 @@ SDRDeviceAddDialog::SDRDeviceAddDialog( wxWindow* parent ): SDRDeviceAddForm( pa } } -void SDRDeviceAddDialog::OnSoapyModuleChanged( wxCommandEvent& event ) { +void SDRDeviceAddDialog::OnSoapyModuleChanged( wxCommandEvent& /* event */) { wxString strSel = m_soapyModule->GetStringSelection(); selectedModule = strSel.ToStdString(); @@ -33,12 +33,12 @@ void SDRDeviceAddDialog::OnSoapyModuleChanged( wxCommandEvent& event ) { } } -void SDRDeviceAddDialog::OnCancelButton( wxCommandEvent& event ) { +void SDRDeviceAddDialog::OnCancelButton( wxCommandEvent& /* event */) { okPressed = false; Close(true); } -void SDRDeviceAddDialog::OnOkButton( wxCommandEvent& event ) { +void SDRDeviceAddDialog::OnOkButton( wxCommandEvent& /* event */) { wxString strSel = m_soapyModule->GetStringSelection(); selectedModule = strSel.ToStdString(); moduleParam = m_paramText->GetValue().ToStdString(); diff --git a/src/ui/UITestCanvas.cpp b/src/ui/UITestCanvas.cpp index e3bf7d2..97eff74 100644 --- a/src/ui/UITestCanvas.cpp +++ b/src/ui/UITestCanvas.cpp @@ -52,7 +52,7 @@ void UITestCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) { SwapBuffers(); } -void UITestCanvas::OnIdle(wxIdleEvent &event) { +void UITestCanvas::OnIdle(wxIdleEvent& /* event */) { Refresh(false); } diff --git a/src/visual/ScopeCanvas.cpp b/src/visual/ScopeCanvas.cpp index b98ae83..4dc4685 100644 --- a/src/visual/ScopeCanvas.cpp +++ b/src/visual/ScopeCanvas.cpp @@ -240,7 +240,7 @@ void ScopeCanvas::OnMouseMoved(wxMouseEvent& event) { } } -void ScopeCanvas::OnMouseWheelMoved(wxMouseEvent& event) { +void ScopeCanvas::OnMouseWheelMoved(wxMouseEvent& /* event */) { }