From 72a1bc13255ff443060da7476d38085b1859eae1 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 6 Aug 2018 18:34:52 +0200 Subject: profilewidget: remove warning of unused var SUBSURFACE_MOBILE does not include the single function that uses the variable add #ifndef SUBSURFACE_MOBILE to avoid warning Signed-off-by: Jan Iversen --- profile-widget/profilewidget2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 79aa2e876..942996df1 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -89,7 +89,9 @@ static struct _ItemPos { // Constant describing at which z-level the thumbnails are located. // We might add more constants here for easier customability. +#ifndef SUBSURFACE_MOBILE static const double thumbnailBaseZValue = 100.0; +#endif ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent), currentState(INVALID), -- cgit v1.2.3-70-g09d2