From bce51d09d7040ee73d1a97f77b1bd328a32fc2d8 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 4 Feb 2022 22:26:40 +0000 Subject: [PATCH] Fix linux warnings --- .appveyor.yml | 2 +- debian/control | 1 + plugins/channelrx/demodadsb/adsbdemodgui.h | 2 ++ plugins/feature/map/cesiuminterface.h | 2 +- plugins/feature/map/mapwebsocketserver.cpp | 4 ++-- sdrgui/gui/httpdownloadmanagergui.cpp | 2 ++ 6 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 96022e168..fd92cb44d 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -80,7 +80,7 @@ for: sudo apt-get -y install build-essential cmake git xxd \ devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libqt5opengl5-dev \ qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ - libqt5quick5 qtwebengine5-dev \ + libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-window2 qml-module-qtquick-dialogs \ qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtgraphicaleffects \ libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-dev \ diff --git a/debian/control b/debian/control index fda7f3b15..680bee08c 100644 --- a/debian/control +++ b/debian/control @@ -30,6 +30,7 @@ Build-Depends: debhelper (>= 9), qtpositioning5-dev, qtlocation5-dev, qtwebengine5-dev, + qtbase5-private-dev, libusb-1.0-0-dev, libboost-all-dev, libasound2-dev, diff --git a/plugins/channelrx/demodadsb/adsbdemodgui.h b/plugins/channelrx/demodadsb/adsbdemodgui.h index 56b278a8b..51d5aece1 100644 --- a/plugins/channelrx/demodadsb/adsbdemodgui.h +++ b/plugins/channelrx/demodadsb/adsbdemodgui.h @@ -691,6 +691,8 @@ public: virtual bool match(const QString &aircraft, const QString &manufacturer, QString &model) { + (void) manufacturer; + QRegularExpressionMatch match = m_aircraftRegExp.match(aircraft); if (match.hasMatch()) { diff --git a/plugins/feature/map/cesiuminterface.h b/plugins/feature/map/cesiuminterface.h index 6f21b9b84..8a46c2c85 100644 --- a/plugins/feature/map/cesiuminterface.h +++ b/plugins/feature/map/cesiuminterface.h @@ -20,7 +20,7 @@ #include "mapwebsocketserver.h" #include "czml.h" -#include "swgmapanimation.h" +#include "SWGMapAnimation.h" class MapItem; diff --git a/plugins/feature/map/mapwebsocketserver.cpp b/plugins/feature/map/mapwebsocketserver.cpp index fedc787c9..72cd55bbf 100644 --- a/plugins/feature/map/mapwebsocketserver.cpp +++ b/plugins/feature/map/mapwebsocketserver.cpp @@ -51,7 +51,7 @@ void MapWebSocketServer::onNewConnection() void MapWebSocketServer::processTextMessage(QString message) { - QWebSocket *client = qobject_cast(sender()); + //QWebSocket *client = qobject_cast(sender()); //qDebug() << "MapWebSocketServer::processTextMessage - Received text " << message; QJsonParseError error; @@ -65,7 +65,7 @@ void MapWebSocketServer::processTextMessage(QString message) void MapWebSocketServer::processBinaryMessage(QByteArray message) { - QWebSocket *client = qobject_cast(sender()); + //QWebSocket *client = qobject_cast(sender()); // Shouldn't receive any binary messages for now qDebug() << "MapWebSocketServer::processBinaryMessage - Received binary " << message; } diff --git a/sdrgui/gui/httpdownloadmanagergui.cpp b/sdrgui/gui/httpdownloadmanagergui.cpp index 869091c8b..ee82aa739 100644 --- a/sdrgui/gui/httpdownloadmanagergui.cpp +++ b/sdrgui/gui/httpdownloadmanagergui.cpp @@ -100,6 +100,8 @@ void HttpDownloadManagerGUI::downloadCompleteGUI(const QString& filename, bool s void HttpDownloadManagerGUI::retryDownload(const QString &filename, QNetworkReply *oldReply, QNetworkReply *newReply) { + (void) oldReply; + int idx = m_filenames.indexOf(filename); if (idx >= 0) {