diff --git a/lib/QMapControl/src/emptymapadapter.cpp b/lib/QMapControl/src/emptymapadapter.cpp index 7d1862a..93cf3c9 100644 --- a/lib/QMapControl/src/emptymapadapter.cpp +++ b/lib/QMapControl/src/emptymapadapter.cpp @@ -29,6 +29,7 @@ namespace qmapcontrol EmptyMapAdapter::EmptyMapAdapter(int tileSize, int minZoom, int maxZoom) :MapAdapter("", "", 256, minZoom, maxZoom) { + Q_UNUSED(tileSize); PI = acos(-1.0); numberOfTiles = tilesonzoomlevel(minZoom); @@ -67,6 +68,9 @@ namespace qmapcontrol QString EmptyMapAdapter::query(int x, int y, int z) const { + Q_UNUSED(x); + Q_UNUSED(y); + Q_UNUSED(z); return ""; } diff --git a/src/Core.cc b/src/Core.cc index 5cccf45..a2c0138 100644 --- a/src/Core.cc +++ b/src/Core.cc @@ -183,7 +183,7 @@ void Core::startUASManager() #endif pluginsDir.cd("plugins"); - UASManager* m = UASManager::instance(); + UASManager::instance(); // Load plugins @@ -197,7 +197,7 @@ void Core::startUASManager() { //populateMenus(plugin); pluginFileNames += fileName; - printf(QString("Loaded plugin from " + fileName + "\n").toStdString().c_str()); + //printf(QString("Loaded plugin from " + fileName + "\n").toStdString().c_str()); } } } diff --git a/src/ui/HUD.cc b/src/ui/HUD.cc index 15ca6b7..cd14ab5 100644 --- a/src/ui/HUD.cc +++ b/src/ui/HUD.cc @@ -1170,6 +1170,8 @@ void HUD::drawChangeRateStrip(float xRef, float yRef, float height, float minRat void HUD::drawSystemIndicator(float xRef, float yRef, int maxNum, float maxWidth, float maxHeight, QPainter* painter) { + Q_UNUSED(maxWidth); + Q_UNUSED(maxHeight); if (values.size() > 0) { QString selectedKey = values.begin().key(); @@ -1298,6 +1300,8 @@ void HUD::drawLine(float refX1, float refY1, float refX2, float refY2, float wid void HUD::drawEllipse(float refX, float refY, float radiusX, float radiusY, float startDeg, float endDeg, float lineWidth, const QColor& color, QPainter* painter) { + Q_UNUSED(startDeg); + Q_UNUSED(endDeg); QPen pen(painter->pen().style()); pen.setWidth(refLineWidthToPen(lineWidth)); pen.setColor(color); diff --git a/src/ui/MapWidget.cc b/src/ui/MapWidget.cc index 58ea47e..d73b7b1 100644 --- a/src/ui/MapWidget.cc +++ b/src/ui/MapWidget.cc @@ -193,6 +193,7 @@ void MapWidget::updateGlobalPosition(UASInterface* uas, double lat, double lon, void MapWidget::updatePosition(float time, double lat, double lon) { + Q_UNUSED(time); //gpsposition->setText(QString::number(time) + " / " + QString::number(lat) + " / " + QString::number(lon)); if (followgps->isChecked()) {