Silence -Werror,-Wimplicit-fallthrough under NDEBUG

Change-Id: Iea1951275966aa9e428505eba3b8133bc10b90f5
This commit is contained in:
Stephan Bergmann
2016-05-12 14:38:56 +02:00
parent 11b3262dd1
commit 3d1b29a7da

View File

@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#include <cstdlib>
#include "scitems.hxx"
#include <editeng/eeitem.hxx>
#include <svx/svdpool.hxx>
@@ -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)