From 3d1b29a7da5c95de7dc9456d05e46bf563eab9c9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 May 2016 14:38:56 +0200 Subject: [PATCH] Silence -Werror,-Wimplicit-fallthrough under NDEBUG Change-Id: Iea1951275966aa9e428505eba3b8133bc10b90f5 --- sc/source/ui/unoobj/textuno.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx index bcf96185422c..f2a9ee9f802a 100644 --- a/sc/source/ui/unoobj/textuno.cxx +++ b/sc/source/ui/unoobj/textuno.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + +#include + #include "scitems.hxx" #include #include @@ -337,12 +341,11 @@ OUString SAL_CALL ScHeaderFooterTextObj::getString() throw(uno::RuntimeException case ScHeaderFooterPart::CENTER: pData = rContentObj->GetCenterEditObject(); break; - default: //needed for compiler warning: possible uninitialized pointer - assert(!"unexpected enum value of ScHeaderFooterPart"); - // fall through case ScHeaderFooterPart::RIGHT: pData = rContentObj->GetRightEditObject(); break; + default: //needed for compiler warning: possible uninitialized pointer + for (;;) std::abort(); } if (pData)