mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 13:48:38 -05:00
Warning cleanup, fix travis config
This commit is contained in:
parent
3a594de37f
commit
e75387c25d
@ -12,7 +12,7 @@ addons:
|
||||
- freeglut3-dev
|
||||
- libhamlib-dev
|
||||
script:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install hamlib; done
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install hamlib; fi
|
||||
- bash travis-ci/build_liquiddsp.sh
|
||||
- bash travis-ci/build_soapysdr.sh
|
||||
- bash travis-ci/build_wxwidgets.sh
|
||||
|
@ -2405,7 +2405,7 @@ void AppFrame::OnUnSplit(wxSplitterEvent& event)
|
||||
event.Veto();
|
||||
}
|
||||
|
||||
void AppFrame::OnAboutDialogClose(wxCommandEvent& event) {
|
||||
void AppFrame::OnAboutDialogClose(wxCommandEvent& /* event */) {
|
||||
aboutDlg->Destroy();
|
||||
aboutDlg = nullptr;
|
||||
}
|
||||
|
@ -73,17 +73,17 @@ void ModemProperties::initDefaultProperties() {
|
||||
i++;
|
||||
}
|
||||
|
||||
int defaultDevice = 0;
|
||||
int dc = 0;
|
||||
// int defaultDevice = 0;
|
||||
// int dc = 0;
|
||||
|
||||
for (auto mdevices_i : audioOutputDevices) {
|
||||
outputOpts.push_back(std::to_string(mdevices_i.first));
|
||||
outputOptNames.push_back(mdevices_i.second.name);
|
||||
|
||||
if (mdevices_i.second.isDefaultOutput) {
|
||||
defaultDevice = dc;
|
||||
}
|
||||
dc++;
|
||||
// if (mdevices_i.second.isDefaultOutput) {
|
||||
// defaultDevice = dc;
|
||||
// }
|
||||
// dc++;
|
||||
}
|
||||
|
||||
outputArg.key ="._audio_output";
|
||||
@ -261,11 +261,11 @@ void ModemProperties::OnChange(wxPropertyGridEvent &event) {
|
||||
}
|
||||
}
|
||||
|
||||
void ModemProperties::OnCollapse(wxPropertyGridEvent &event) {
|
||||
void ModemProperties::OnCollapse(wxPropertyGridEvent & /* event */) {
|
||||
collapsed = true;
|
||||
}
|
||||
|
||||
void ModemProperties::OnExpand(wxPropertyGridEvent &event) {
|
||||
void ModemProperties::OnExpand(wxPropertyGridEvent &/* event */) {
|
||||
collapsed = false;
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ void AudioSinkFileThread::sink(AudioThreadInputPtr input) {
|
||||
audioFileHandler->writeToFile(input);
|
||||
}
|
||||
|
||||
void AudioSinkFileThread::inputChanged(AudioThreadInput oldProps, AudioThreadInputPtr newProps) {
|
||||
void AudioSinkFileThread::inputChanged(AudioThreadInput /* oldProps */, AudioThreadInputPtr /* newProps */) {
|
||||
// close, set new parameters, adjust file name sequence and re-open?
|
||||
if (!audioFileHandler) {
|
||||
return;
|
||||
|
@ -689,7 +689,7 @@ void BookmarkView::refreshLayout() {
|
||||
}
|
||||
|
||||
|
||||
wxButton *BookmarkView::makeButton(wxWindow *parent, std::string labelVal, wxObjectEventFunction handler) {
|
||||
wxButton *BookmarkView::makeButton(wxWindow * /* parent */, std::string labelVal, wxObjectEventFunction handler) {
|
||||
wxButton *nButton = new wxButton( m_buttonPanel, wxID_ANY, labelVal);
|
||||
nButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, handler, nullptr, this);
|
||||
|
||||
@ -1553,7 +1553,7 @@ void BookmarkView::onSearchTextFocus( wxMouseEvent& event ) {
|
||||
}
|
||||
|
||||
|
||||
void BookmarkView::onSearchText( wxCommandEvent& event ) {
|
||||
void BookmarkView::onSearchText( wxCommandEvent& /* event */ ) {
|
||||
|
||||
std::wstring searchText = m_searchText->GetValue().Trim().Lower().ToStdWstring();
|
||||
|
||||
|
@ -36,7 +36,7 @@ void ActionDialog::setActiveDialog(ActionDialog *dlg) {
|
||||
}
|
||||
|
||||
|
||||
void ActionDialog::onClickCancel( wxCommandEvent& event ) {
|
||||
void ActionDialog::onClickCancel( wxCommandEvent& /* event */ ) {
|
||||
ActionDialog *dlg = activeDialog;
|
||||
ActionDialog::setActiveDialog(nullptr);
|
||||
dlg->EndModal(0);
|
||||
@ -45,7 +45,7 @@ void ActionDialog::onClickCancel( wxCommandEvent& event ) {
|
||||
}
|
||||
|
||||
|
||||
void ActionDialog::onClickOK( wxCommandEvent& event ) {
|
||||
void ActionDialog::onClickOK( wxCommandEvent& /* event */ ) {
|
||||
ActionDialog *dlg = activeDialog;
|
||||
ActionDialog::setActiveDialog(nullptr);
|
||||
dlg->EndModal(0);
|
||||
|
@ -21,7 +21,7 @@ PortSelectorDialog::PortSelectorDialog( wxWindow* parent, wxWindowID id, std::st
|
||||
m_portSelection->SetValue(defaultPort);
|
||||
}
|
||||
|
||||
void PortSelectorDialog::onListSelect( wxCommandEvent& event ) {
|
||||
void PortSelectorDialog::onListSelect( wxCommandEvent& /* event */ ) {
|
||||
int pSelect = m_portList->GetSelection();
|
||||
if (pSelect != -1) {
|
||||
m_portSelection->SetValue(m_portList->GetString(pSelect));
|
||||
@ -29,11 +29,11 @@ void PortSelectorDialog::onListSelect( wxCommandEvent& event ) {
|
||||
}
|
||||
|
||||
|
||||
void PortSelectorDialog::onCancelButton( wxCommandEvent& event ) {
|
||||
void PortSelectorDialog::onCancelButton( wxCommandEvent& /* event */ ) {
|
||||
wxGetApp().getAppFrame()->dismissRigControlPortDialog();
|
||||
}
|
||||
|
||||
|
||||
void PortSelectorDialog::onOKButton( wxCommandEvent& event ) {
|
||||
void PortSelectorDialog::onOKButton( wxCommandEvent& /* event */ ) {
|
||||
wxGetApp().getAppFrame()->setRigControlPort(m_portSelection->GetValue().ToStdString());
|
||||
}
|
||||
|
@ -14,16 +14,16 @@ DigitalConsole::~DigitalConsole() {
|
||||
doParent->setDialog(nullptr);
|
||||
}
|
||||
|
||||
void DigitalConsole::OnClose( wxCloseEvent& event ) {
|
||||
void DigitalConsole::OnClose( wxCloseEvent& /* event */ ) {
|
||||
doParent->setDialog(nullptr);
|
||||
}
|
||||
|
||||
void DigitalConsole::OnCopy( wxCommandEvent& event ) {
|
||||
void DigitalConsole::OnCopy( wxCommandEvent& /* event */ ) {
|
||||
m_dataView->SelectAll();
|
||||
m_dataView->Copy();
|
||||
}
|
||||
|
||||
void DigitalConsole::OnPause( wxCommandEvent& event ) {
|
||||
void DigitalConsole::OnPause( wxCommandEvent& /* event */ ) {
|
||||
if (streamPaused.load()) {
|
||||
m_pauseButton->SetLabel("Stop");
|
||||
streamPaused.store(false);
|
||||
@ -37,7 +37,7 @@ void DoRefresh( wxTimerEvent& event ) {
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
void DigitalConsole::DoRefresh( wxTimerEvent& event ) {
|
||||
void DigitalConsole::DoRefresh( wxTimerEvent& /* event */ ) {
|
||||
if (streamWritten.load()) {
|
||||
stream_busy.lock();
|
||||
m_dataView->AppendText(streamBuf.str());
|
||||
@ -47,7 +47,7 @@ void DigitalConsole::DoRefresh( wxTimerEvent& event ) {
|
||||
}
|
||||
}
|
||||
|
||||
void DigitalConsole::OnClear( wxCommandEvent& event ) {
|
||||
void DigitalConsole::OnClear( wxCommandEvent& /* event */ ) {
|
||||
m_dataView->Clear();
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ void ModemAPSK::updateDemodulatorCons(int cons) {
|
||||
}
|
||||
}
|
||||
|
||||
void ModemAPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemAPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
|
||||
digitalStart(dkit, demodAPSK, input);
|
||||
|
@ -102,7 +102,7 @@ void ModemASK::updateDemodulatorCons(int cons) {
|
||||
}
|
||||
}
|
||||
|
||||
void ModemASK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemASK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
|
||||
digitalStart(dkit, demodASK, input);
|
||||
|
@ -19,7 +19,7 @@ std::string ModemBPSK::getName() {
|
||||
return "BPSK";
|
||||
}
|
||||
|
||||
void ModemBPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemBPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
digitalStart(dkit, demodBPSK, input);
|
||||
|
||||
|
@ -103,7 +103,7 @@ void ModemDPSK::updateDemodulatorCons(int cons) {
|
||||
}
|
||||
}
|
||||
|
||||
void ModemDPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemDPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
|
||||
digitalStart(dkit, demodDPSK, input);
|
||||
|
@ -128,7 +128,7 @@ ModemFSK::~ModemFSK() {
|
||||
|
||||
}
|
||||
|
||||
void ModemFSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemFSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitFSK *dkit = (ModemKitFSK *)kit;
|
||||
|
||||
digitalStart(dkit, nullptr, input);
|
||||
|
@ -23,7 +23,7 @@ ModemBase *ModemGMSK::factory() {
|
||||
return new ModemGMSK;
|
||||
}
|
||||
|
||||
int ModemGMSK::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
||||
int ModemGMSK::checkSampleRate(long long sampleRate, int /* audioSampleRate */) {
|
||||
if (sampleRate < MIN_BANDWIDTH) {
|
||||
return MIN_BANDWIDTH;
|
||||
}
|
||||
@ -115,7 +115,7 @@ void ModemGMSK::disposeKit(ModemKit *kit) {
|
||||
delete dkit;
|
||||
}
|
||||
|
||||
void ModemGMSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemGMSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitGMSK *dkit = (ModemKitGMSK *)kit;
|
||||
unsigned int sym_out;
|
||||
|
||||
|
@ -19,14 +19,14 @@ ModemBase *ModemOOK::factory() {
|
||||
return new ModemOOK;
|
||||
}
|
||||
|
||||
int ModemOOK::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
||||
int ModemOOK::checkSampleRate(long long sampleRate, int /* audioSampleRate */) {
|
||||
if (sampleRate < 100) {
|
||||
return 100;
|
||||
}
|
||||
return (int)sampleRate;
|
||||
}
|
||||
|
||||
void ModemOOK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemOOK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
digitalStart(dkit, demodOOK, input);
|
||||
|
||||
|
@ -104,7 +104,7 @@ void ModemPSK::updateDemodulatorCons(int cons) {
|
||||
}
|
||||
}
|
||||
|
||||
void ModemPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
|
||||
digitalStart(dkit, demodPSK, input);
|
||||
|
@ -97,7 +97,7 @@ void ModemQAM::updateDemodulatorCons(int cons) {
|
||||
}
|
||||
}
|
||||
|
||||
void ModemQAM::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemQAM::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
digitalStart(dkit, demodQAM, input);
|
||||
|
||||
|
@ -19,7 +19,7 @@ std::string ModemQPSK::getName() {
|
||||
return "QPSK";
|
||||
}
|
||||
|
||||
void ModemQPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemQPSK::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
digitalStart(dkit, demodQPSK, input);
|
||||
|
||||
|
@ -67,7 +67,7 @@ void ModemSQAM::updateDemodulatorCons(int cons) {
|
||||
}
|
||||
}
|
||||
|
||||
void ModemSQAM::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemSQAM::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
|
||||
digitalStart(dkit, demodSQAM, input);
|
||||
|
@ -19,7 +19,7 @@ ModemST::~ModemST() {
|
||||
modem_destroy(demodST);
|
||||
}
|
||||
|
||||
void ModemST::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||
void ModemST::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput * /* audioOut */) {
|
||||
ModemKitDigital *dkit = (ModemKitDigital *)kit;
|
||||
digitalStart(dkit, demodST, input);
|
||||
|
||||
|
@ -32,7 +32,7 @@ RigList &RigThread::enumerate() {
|
||||
return RigThread::rigCaps;
|
||||
}
|
||||
|
||||
int RigThread::add_hamlib_rig(const struct rig_caps *rc, void* f)
|
||||
int RigThread::add_hamlib_rig(const struct rig_caps *rc, void* /* f */)
|
||||
{
|
||||
rigCaps.push_back(rc);
|
||||
return 1;
|
||||
|
@ -10,7 +10,7 @@ ImagePanel::ImagePanel(wxPanel * parent, wxString file, wxBitmapType format) :
|
||||
image.LoadFile(file, format);
|
||||
}
|
||||
|
||||
void ImagePanel::paintEvent(wxPaintEvent & evt) {
|
||||
void ImagePanel::paintEvent(wxPaintEvent & /* evt */) {
|
||||
wxPaintDC dc(this);
|
||||
render(dc);
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ void TuningCanvas::StepTuner(ActiveState state, int exponent, bool up) {
|
||||
}
|
||||
}
|
||||
|
||||
void TuningCanvas::OnIdle(wxIdleEvent &event) {
|
||||
void TuningCanvas::OnIdle(wxIdleEvent & /* event */) {
|
||||
if (mouseTracker.mouseDown()) {
|
||||
if (downState != TUNING_HOVER_NONE) {
|
||||
dragAccum += 5.0*mouseTracker.getOriginDeltaMouseX();
|
||||
|
@ -483,7 +483,7 @@ void WaterfallCanvas::OnKeyDown(wxKeyEvent& event) {
|
||||
}
|
||||
|
||||
}
|
||||
void WaterfallCanvas::OnIdle(wxIdleEvent &event) {
|
||||
void WaterfallCanvas::OnIdle(wxIdleEvent & /* event */) {
|
||||
processInputQueue();
|
||||
Refresh();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user