diff options
author | ronso0 <ronso0@mixxx.org> | 2021-02-19 03:24:14 +0100 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2021-02-20 01:22:30 +0100 |
commit | 5b3f7f600f06e73565848e3be63e85f5c3b3e462 (patch) | |
tree | 7ddf9259e7a87ce1a0ccefcb3b863811832099d4 /src | |
parent | 5c235c3f64c86192257a5145d2d5a21b5a5cd4fe (diff) |
fix warnings raised when building w/o vinyl control
Diffstat (limited to 'src')
-rw-r--r-- | src/mixer/basetrackplayer.cpp | 2 | ||||
-rw-r--r-- | src/widget/wmainmenubar.cpp | 2 | ||||
-rw-r--r-- | src/widget/wspinny.cpp | 8 |
3 files changed, 11 insertions, 1 deletions
diff --git a/src/mixer/basetrackplayer.cpp b/src/mixer/basetrackplayer.cpp index 8675331957..c0503d8b4c 100644 --- a/src/mixer/basetrackplayer.cpp +++ b/src/mixer/basetrackplayer.cpp @@ -649,6 +649,8 @@ void BaseTrackPlayerImpl::slotVinylControlEnabled(double v) { m_pVinylControlStatus->set(VINYL_STATUS_DISABLED); emit noVinylControlInputConfigured(); } +#else + Q_UNUSED(v); #endif } diff --git a/src/widget/wmainmenubar.cpp b/src/widget/wmainmenubar.cpp index 62907573dc..4a21f520c6 100644 --- a/src/widget/wmainmenubar.cpp +++ b/src/widget/wmainmenubar.cpp @@ -20,6 +20,7 @@ QString buildWhatsThis(const QString& title, const QString& text) { return QString("%1\n\n%2").arg(preparedTitle.remove("&"), text); } +#ifdef __VINYLCONTROL__ QString vinylControlDefaultKeyBinding(int deck) { // More bindings need to be defined if you increment // kMaximumVinylControlInputs. @@ -32,6 +33,7 @@ QString vinylControlDefaultKeyBinding(int deck) { default: return QString(); } } +#endif // __VINYLCONTROL__ QString loadToDeckDefaultKeyBinding(int deck) { switch (deck) { diff --git a/src/widget/wspinny.cpp b/src/widget/wspinny.cpp index 8c4149f619..b9eadc0c2c 100644 --- a/src/widget/wspinny.cpp +++ b/src/widget/wspinny.cpp @@ -68,7 +68,9 @@ WSpinny::WSpinny( m_pCoverMenu(new WCoverArtMenu(this)) { #ifdef __VINYLCONTROL__ m_pVCManager = pVCMan; -#endif +#else + Q_UNUSED(pVCMan); +#endif // __VINYLCONTROL__ //Drag and drop setAcceptDrops(true); qDebug() << "WSpinny(): Created QGLWidget, Context" @@ -140,6 +142,8 @@ void WSpinny::onVinylSignalQualityUpdate(const VinylSignalQualityReport& report) line++; } } +#else + Q_UNUSED(report); #endif } @@ -540,6 +544,8 @@ void WSpinny::updateVinylControlSignalEnabled(double enabled) { // fill with transparent black m_qImage.fill(qRgba(0,0,0,0)); } +#else + Q_UNUSED(enabled); #endif } |