From b882b141d421c624ca24b3604ec7973a5c335e3c Mon Sep 17 00:00:00 2001 From: Subhransu Mohanty Date: Wed, 19 Aug 2020 10:36:54 +0900 Subject: [PATCH] fix warnings --- src/lottie/lottiefiltermodel.h | 2 +- src/lottie/lottieitem.cpp | 2 +- src/lottie/lottieparser.cpp | 2 +- src/vector/vdrawable.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lottie/lottiefiltermodel.h b/src/lottie/lottiefiltermodel.h index 27c94ca..b2b98b1 100644 --- a/src/lottie/lottiefiltermodel.h +++ b/src/lottie/lottiefiltermodel.h @@ -224,7 +224,7 @@ private: PointFunc pointFunc; SizeFunc sizeFunc; details() {} - ~details() {} + ~details() noexcept {} } impl; }; diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index 5fdf28b..7cd25cc 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -214,7 +214,7 @@ void renderer::Mask::preprocess(const VRect &clip) } void renderer::Layer::render(VPainter *painter, const VRle &inheritMask, - const VRle &matteRle, SurfaceCache &cache) + const VRle &matteRle, SurfaceCache &) { auto renderlist = renderList(); diff --git a/src/lottie/lottieparser.cpp b/src/lottie/lottieparser.cpp index e4611ce..e5ef037 100644 --- a/src/lottie/lottieparser.cpp +++ b/src/lottie/lottieparser.cpp @@ -254,7 +254,7 @@ public: void getValue(model::Repeater::Transform &); template - bool parseKeyFrameValue(const char *key, model::Value &value) + bool parseKeyFrameValue(const char *, model::Value &) { return false; } diff --git a/src/vector/vdrawable.cpp b/src/vector/vdrawable.cpp index 4bc154c..c8ff02b 100644 --- a/src/vector/vdrawable.cpp +++ b/src/vector/vdrawable.cpp @@ -29,7 +29,7 @@ VDrawable::VDrawable(VDrawable::Type type) setType(type); } -VDrawable::~VDrawable() +VDrawable::~VDrawable() noexcept { if (mStrokeInfo) { if (mType == Type::StrokeWithDash) { -- 2.34.1