Fix warning Wunused-function.

For some reasons suppressing doesn't work.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-12-28 22:40:19 +02:00
parent 8c676948ff
commit a35a6f2e55

View file

@ -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<QPointF> &points)
@ -116,9 +113,7 @@ QPainterPath DrawContour(const QVector<QPointF> &points)
}
//---------------------------------------------------------------------------------------------------------------------
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wunused-function")
#ifdef ARRANGED_DETAILS
QPainterPath DrawDetails(const QVector<VLayoutPiece> &details)
{
QPainterPath path;
@ -132,8 +127,7 @@ QPainterPath DrawDetails(const QVector<VLayoutPiece> &details)
}
return path;
}
QT_WARNING_POP
#endif
} //anonymous namespace