From d523f5ea56f51b0ed5090214ca367ba5194bf7af Mon Sep 17 00:00:00 2001 From: "arnaud.clere" Date: Fri, 15 Nov 2019 16:05:05 +0100 Subject: [PATCH] Fixed warnings --- tests/QBind/QCbor_impl.h | 2 +- tests/QBind/QModel_impl.h | 3 +++ tests/QBind/main.cpp | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/QBind/QCbor_impl.h b/tests/QBind/QCbor_impl.h index e6ed22e326..f150097476 100644 --- a/tests/QBind/QCbor_impl.h +++ b/tests/QBind/QCbor_impl.h @@ -198,7 +198,7 @@ protected: bool tryBind ( bool&& b) { set(QCborValue( b )); return true; } bool tryBind ( float&& d) { set(QCborValue(double(d))); return true; } bool tryBind ( double&& d) { set(QCborValue( d )); return true; } - bool tryBind ( quint64&& n) { if (std::numeric_limits::max()::max())mode()"); return v.null(); } } private: QStack parentIds; @@ -234,6 +235,7 @@ private: return std::move(s); } + else { Q_ASSERT_X(!s, Q_FUNC_INFO, "Unsupported v->mode()"); return std::move(s); } } QSequence flatten(QList& ps, QSequence&& s) { -- GitLab