mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-12 23:26:10 -05:00
Merge pull request #700 from cjcliffe/travis-ci
Add hamlib, digital lab to CI, fix several build warnings
This commit is contained in:
commit
b0505b0659
@ -10,7 +10,10 @@ addons:
|
||||
- libgtk-3-dev
|
||||
- freeglut3
|
||||
- freeglut3-dev
|
||||
- libhamlib-dev
|
||||
script:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
||||
- 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
|
||||
|
@ -1301,7 +1301,9 @@ bool AppFrame::actionOnMenuAbout(wxCommandEvent& event) {
|
||||
|
||||
bool AppFrame::actionOnMenuSettings(wxCommandEvent& event) {
|
||||
|
||||
if (event.GetId() >= wxID_ANTENNAS_BASE && event.GetId() < wxID_ANTENNAS_BASE + antennaNames.size()) {
|
||||
int antennaIdMax = wxID_ANTENNAS_BASE + antennaNames.size();
|
||||
|
||||
if (event.GetId() >= wxID_ANTENNAS_BASE && event.GetId() < antennaIdMax) {
|
||||
|
||||
wxGetApp().setAntennaName(antennaNames[event.GetId() - wxID_ANTENNAS_BASE]);
|
||||
|
||||
@ -1720,7 +1722,9 @@ bool AppFrame::actionOnMenuRig(wxCommandEvent& event) {
|
||||
bManaged = true;
|
||||
}
|
||||
|
||||
if (event.GetId() >= wxID_RIG_SERIAL_BASE && event.GetId() < wxID_RIG_SERIAL_BASE + rigSerialRates.size()) {
|
||||
int rigSerialIdMax = wxID_RIG_SERIAL_BASE + rigSerialRates.size();
|
||||
|
||||
if (event.GetId() >= wxID_RIG_SERIAL_BASE && event.GetId() < rigSerialIdMax) {
|
||||
int serialIdx = event.GetId() - wxID_RIG_SERIAL_BASE;
|
||||
rigSerialRate = rigSerialRates[serialIdx];
|
||||
resetRig = true;
|
||||
@ -2405,7 +2409,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();
|
||||
}
|
||||
|
||||
|
@ -498,8 +498,9 @@ std::string SDRDevicesDialog::getSelectedChoiceOption(wxPGProperty* prop, const
|
||||
int choiceIndex = prop->GetChoiceSelection();
|
||||
|
||||
if (arg.options.size() > 0) {
|
||||
|
||||
if (choiceIndex >= 0 && choiceIndex < arg.options.size()) {
|
||||
int choiceMax = arg.options.size();
|
||||
|
||||
if (choiceIndex >= 0 && choiceIndex < choiceMax) {
|
||||
//normal selection
|
||||
optionName = arg.options[choiceIndex];
|
||||
} else {
|
||||
|
@ -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);
|
||||
|
@ -16,7 +16,7 @@ ModemBase *ModemFSK::factory() {
|
||||
return new ModemFSK;
|
||||
}
|
||||
|
||||
int ModemFSK::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
||||
int ModemFSK::checkSampleRate(long long sampleRate, int /* audioSampleRate */) {
|
||||
double minSps = pow(2.0,bps);
|
||||
double nextSps = (double(sampleRate) / double(sps));
|
||||
if (nextSps < minSps) {
|
||||
@ -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);
|
||||
|
||||
|
@ -286,7 +286,7 @@ void SpectrumVisualProcessor::process() {
|
||||
return;
|
||||
}
|
||||
|
||||
while (resampleBw / SPECTRUM_VZM >= bandwidth) {
|
||||
while (resampleBw / SPECTRUM_VZM >= (long) bandwidth) {
|
||||
resampleBw /= SPECTRUM_VZM;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -2,6 +2,6 @@
|
||||
cd $HOME/build
|
||||
mkdir cjcliffe/CubicSDR-build
|
||||
cd cjcliffe/CubicSDR-build
|
||||
cmake ../CubicSDR -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=$HOME/build/wxWidgets/staticlib/bin/wx-config
|
||||
cmake ../CubicSDR -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=$HOME/build/wxWidgets/staticlib/bin/wx-config -DUSE_HAMLIB=1 -DENABLE_DIGITAL_LAB=1
|
||||
make -j2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user