From 6a0a9870a3b42eca22af064579c8f1b5149c1fa4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 25 Apr 2016 17:11:22 +0200 Subject: -Werror=maybe-uninitialized Change-Id: Iafa3712d3b600e11b687e7ec5a4ea5a14e87a48b --- connectivity/source/commontools/FValue.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'connectivity/source') diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx index 68b5aa4bbe3d..f7473f539823 100644 --- a/connectivity/source/commontools/FValue.cxx +++ b/connectivity/source/commontools/FValue.cxx @@ -1217,8 +1217,9 @@ sal_uInt8 ORowSetValue::getUInt8() const Any aValue = makeAny(); // Cf. "There is no TypeClass_UNSIGNED_BYTE" in makeAny: sal_uInt16 n; - aValue >>= n; - nRet = static_cast(n); + if (aValue >>= n) { + nRet = static_cast(n); + } break; } } -- cgit