From a35a6f2e55c9e0c05ba47957ce701cdbcc808d2b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 28 Dec 2018 22:40:19 +0200 Subject: [PATCH] Fix warning Wunused-function. For some reasons suppressing doesn't work. --HG-- branch : develop --- src/libs/vlayout/vposition.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/libs/vlayout/vposition.cpp b/src/libs/vlayout/vposition.cpp index ff54c8ef2..700e42b82 100644 --- a/src/libs/vlayout/vposition.cpp +++ b/src/libs/vlayout/vposition.cpp @@ -52,9 +52,7 @@ namespace { //--------------------------------------------------------------------------------------------------------------------- -QT_WARNING_PUSH -QT_WARNING_DISABLE_GCC("-Wunused-function") - +#ifdef SHOW_DIRECTION QPainterPath ShowDirection(const QLineF &edge) { const int arrowLength = 14; @@ -81,8 +79,7 @@ QPainterPath ShowDirection(const QLineF &edge) path.lineTo(arrow.p2()); return path; } - -QT_WARNING_POP +#endif //--------------------------------------------------------------------------------------------------------------------- QPainterPath DrawContour(const QVector &points) @@ -116,9 +113,7 @@ QPainterPath DrawContour(const QVector &points) } //--------------------------------------------------------------------------------------------------------------------- -QT_WARNING_PUSH -QT_WARNING_DISABLE_GCC("-Wunused-function") - +#ifdef ARRANGED_DETAILS QPainterPath DrawDetails(const QVector &details) { QPainterPath path; @@ -132,8 +127,7 @@ QPainterPath DrawDetails(const QVector &details) } return path; } - -QT_WARNING_POP +#endif } //anonymous namespace