From 2e835c2af2f01d9eaf3d5995fa6d912e4087cc37 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 10 Nov 2022 11:55:50 +0200 Subject: [PATCH] Cppcheck warnings. --- src/libs/vlayout/vrawsapoint.h | 1 + src/libs/vpatterndb/vpiece.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libs/vlayout/vrawsapoint.h b/src/libs/vlayout/vrawsapoint.h index 11a8f0947..1dbac9abe 100644 --- a/src/libs/vlayout/vrawsapoint.h +++ b/src/libs/vlayout/vrawsapoint.h @@ -37,6 +37,7 @@ QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Weffc++") +// cppcheck-suppress unknownMacro QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor") QT_WARNING_DISABLE_CLANG("-Wnon-virtual-dtor") diff --git a/src/libs/vpatterndb/vpiece.cpp b/src/libs/vpatterndb/vpiece.cpp index 3b61905ef..9bbbaeb2c 100644 --- a/src/libs/vpatterndb/vpiece.cpp +++ b/src/libs/vpatterndb/vpiece.cpp @@ -1113,6 +1113,7 @@ VPassmark VPiece::CreatePassmark(const QVector &path, int previousIn passmarkData.id = path.at(passmarkIndex).GetId(); passmarkData.globalPassmarkLength = ToPixel(GlobalPassmarkLength(data), *data->GetPatternUnit()); + // cppcheck-suppress unknownMacro QT_WARNING_POP return VPassmark(passmarkData);