From 28428a1fbaf4e884613036fd0e1c60d0bc1f8d35 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Mon, 1 Jul 2019 18:19:43 +0900 Subject: [PATCH] rlottie: fix warning regarding no return value --- src/lottie/lottieparser.cpp | 1 + src/vector/vmatrix.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lottie/lottieparser.cpp b/src/lottie/lottieparser.cpp index faf1486b86..5f88aebdf7 100644 --- a/src/lottie/lottieparser.cpp +++ b/src/lottie/lottieparser.cpp @@ -1250,6 +1250,7 @@ LOTTrimData::TrimType LottieParserImpl::getTrimType() break; default: RAPIDJSON_ASSERT(0); + return LOTTrimData::TrimType::Simultaneously; break; } } diff --git a/src/vector/vmatrix.cpp b/src/vector/vmatrix.cpp index 334e33e7dd..f602468dc3 100644 --- a/src/vector/vmatrix.cpp +++ b/src/vector/vmatrix.cpp @@ -639,6 +639,7 @@ VRect VMatrix::map(const VRect &rect) const } else { // Not supported assert(0); + return {}; } }