From 0871241358ae3d98c9143b9b6a308ac4914712f2 Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Thu, 15 Jun 2017 16:38:48 +0200 Subject: Fix compilation error without opengl If opengl is not present, now that warnings are error, Location fails to build due to an unused ogl variable. Change-Id: Id1e9a1f4da8bc31a65e29b3dd2770250284d02bb Reviewed-by: Alex Blasche --- src/location/maps/qgeotiledmapscene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/location/maps/qgeotiledmapscene.cpp b/src/location/maps/qgeotiledmapscene.cpp index 422082fc..ab15e37b 100644 --- a/src/location/maps/qgeotiledmapscene.cpp +++ b/src/location/maps/qgeotiledmapscene.cpp @@ -609,6 +609,8 @@ void QGeoTiledMapRootNode::updateTiles(QGeoTiledMapTileContainerNode *root, #if QT_CONFIG(opengl) if (ogl) static_cast(node)->setAnisotropyLevel(QSGTexture::Anisotropy16x); +#else + Q_UNUSED(ogl) #endif dirtyBits |= QSGNode::DirtyMaterial; } -- cgit v1.2.1