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" #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 * @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; QString MoreInfo(const QString &detInfo) const;
}; };
QT_WARNING_POP
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief What return string with error * @brief What return string with error

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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