From a21e037de826e0f4c61992c6c6f3fbc27431063a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 19 Oct 2015 23:08:20 +0300 Subject: [PATCH] GCC/Clang warnings. --HG-- branch : develop --- src/libs/vdxf/dxflib/dl_entities.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/libs/vdxf/dxflib/dl_entities.h b/src/libs/vdxf/dxflib/dl_entities.h index 4eb698d9c..f8c8ca271 100644 --- a/src/libs/vdxf/dxflib/dl_entities.h +++ b/src/libs/vdxf/dxflib/dl_entities.h @@ -811,6 +811,10 @@ struct DXFLIB_EXPORT DL_MTextData }; +#ifdef Q_CC_CLANG + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wweak-vtables" +#endif /** * Text Data. @@ -841,7 +845,7 @@ struct DXFLIB_EXPORT DL_TextData angle(angle) {} - ~DL_TextData() + virtual ~DL_TextData() {} DL_TextData(const DL_TextData &data) @@ -934,13 +938,17 @@ struct DXFLIB_EXPORT DL_AttributeData : public DL_TextData tag(tag) {} - ~DL_AttributeData() + virtual ~DL_AttributeData() {} /*! Tag. */ std::string tag; }; +#ifdef Q_CC_CLANG + #pragma clang diagnostic pop +#endif + /** * Generic Dimension Data. */