GCC warnings.

This commit is contained in:
Roman Telezhynskyi 2021-09-25 12:57:15 +03:00
parent aff0ee546b
commit 51ed05e1fa
11 changed files with 35 additions and 4 deletions

View File

@ -36,6 +36,9 @@
#include "../ifcdef.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
/**
* @brief The VException class parent for all exception. Could be use for abstract exception
*/
@ -69,6 +72,8 @@ protected:
QString MoreInfo(const QString &detInfo) const;
};
QT_WARNING_POP
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief What return string with error

View File

@ -87,6 +87,9 @@ struct VGroupData
QT_WARNING_POP
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
class VAbstractPattern : public VDomDocument
{
Q_OBJECT
@ -471,6 +474,8 @@ private:
void SetFMeasurements(QDomElement &element, const QVector<VFinalMeasurement> &measurements);
};
QT_WARNING_POP
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetNameActivPP return current pattern piece name.

View File

@ -302,7 +302,7 @@ public:
* @author Rallaz
*/
/*TODO: handle complex lineType*/
class DRW_LType : public DRW_TableEntry {
class DRW_LType final : public DRW_TableEntry {
SETOBJFRIENDS
public:
DRW_LType()

View File

@ -41,6 +41,9 @@
class VAbstractArcData;
class VPointF;
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
class VAbstractArc : public VAbstractCurve
{
public:
@ -89,4 +92,6 @@ private:
QSharedDataPointer<VAbstractArcData> d;
};
QT_WARNING_POP
#endif // VABSTRACTARC_H

View File

@ -39,7 +39,7 @@ QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
class VAbstractArcData : public QSharedData
class VAbstractArcData final : public QSharedData
{
public:
VAbstractArcData();

View File

@ -43,6 +43,9 @@ class VPointF;
class VSpline;
class VSplinePoint;
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
class VAbstractCubicBezierPath : public VAbstractBezier
{
Q_DECLARE_TR_FUNCTIONS(VAbstractCubicBezierPath)
@ -80,4 +83,6 @@ protected:
virtual VPointF LastPoint() const =0;
};
QT_WARNING_POP
#endif // VABSTRACTCUBICBEZIERPATH_H

View File

@ -44,7 +44,7 @@
class VCubicBezierPathData;
class VCubicBezierPath : public VAbstractCubicBezierPath
class VCubicBezierPath final : public VAbstractCubicBezierPath
{
Q_DECLARE_TR_FUNCTIONS(VCubicBezierPath)
public:

View File

@ -37,7 +37,7 @@ QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
class VPlaceLabelItemData : public QSharedData
class VPlaceLabelItemData final : public QSharedData
{
public:
VPlaceLabelItemData()

View File

@ -39,6 +39,7 @@ unix {
*clang*{
QMAKE_CXXFLAGS += \
# Key -isystem disable checking errors in system headers.
-isystem "$${OUT_PWD}/$${UI_DIR}" \
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.

View File

@ -37,6 +37,9 @@
struct VFinalMeasurement;
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
class VAbstractMainWindow : public QMainWindow
{
Q_OBJECT
@ -79,4 +82,6 @@ private:
Q_DISABLE_COPY(VAbstractMainWindow)
};
QT_WARNING_POP
#endif // VABSTRACTMAINWINDOW_H

View File

@ -34,6 +34,9 @@
#include "../vmisc/def.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
class VCurvePathItem : public QGraphicsPathItem
{
public:
@ -61,4 +64,6 @@ private:
qreal m_defaultWidth;
};
QT_WARNING_POP
#endif // VCURVEPATHITEM_H