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 namespace
{ {
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
QT_WARNING_PUSH #ifdef SHOW_DIRECTION
QT_WARNING_DISABLE_GCC("-Wunused-function")
QPainterPath ShowDirection(const QLineF &edge) QPainterPath ShowDirection(const QLineF &edge)
{ {
const int arrowLength = 14; const int arrowLength = 14;
@ -81,8 +79,7 @@ QPainterPath ShowDirection(const QLineF &edge)
path.lineTo(arrow.p2()); path.lineTo(arrow.p2());
return path; return path;
} }
#endif
QT_WARNING_POP
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
QPainterPath DrawContour(const QVector<QPointF> &points) QPainterPath DrawContour(const QVector<QPointF> &points)
@ -116,9 +113,7 @@ QPainterPath DrawContour(const QVector<QPointF> &points)
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
QT_WARNING_PUSH #ifdef ARRANGED_DETAILS
QT_WARNING_DISABLE_GCC("-Wunused-function")
QPainterPath DrawDetails(const QVector<VLayoutPiece> &details) QPainterPath DrawDetails(const QVector<VLayoutPiece> &details)
{ {
QPainterPath path; QPainterPath path;
@ -132,8 +127,7 @@ QPainterPath DrawDetails(const QVector<VLayoutPiece> &details)
} }
return path; return path;
} }
#endif
QT_WARNING_POP
} //anonymous namespace } //anonymous namespace