diff --git a/src/libs/vlayout/vabstractpiece.cpp b/src/libs/vlayout/vabstractpiece.cpp index adac8806f..f86b2b4c3 100644 --- a/src/libs/vlayout/vabstractpiece.cpp +++ b/src/libs/vlayout/vabstractpiece.cpp @@ -623,8 +623,7 @@ qreal AngleBetweenBisectors(const QLineF &b1, const QLineF &b2) } //--------------------------------------------------------------------------------------------------------------------- -QT_WARNING_PUSH -QT_WARNING_DISABLE_GCC("-Wunused-function") +#if !defined(V_NO_ASSERT) // Use for writing tests void DumpVector(const QVector &points) { @@ -738,7 +737,7 @@ QT_WARNING_POP out << endl << "return points;"; } } -QT_WARNING_POP +#endif } //---------------------------------------------------------------------------------------------------------------------