summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-20 21:26:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-20 22:27:48 +0200
commit7281c497dec340efbcef330d88b55bcabefb8147 (patch)
treefda7d8e4d673f2ba8d79ba9711cdbff5b87a831a /ucbhelper
parent4d9b72d1c3929eca04c7a2e363ab6214676b0f64 (diff)
Use OSL_UNREACHABLE
...in those places that used some code conditional on ENABLE_LTO to work around (non-)unreachability wranings. This removes all uses of the ENABLE_LTO C/C++ macro, so it can go completely. Change-Id: I67544986cb2d3fcd8051caf87c5129bd1086408c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101087 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/client/content.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 8d01366d3ffc..887658755be8 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -21,6 +21,7 @@
#include <cassert>
+#include <o3tl/unreachable.hxx>
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
#include <sal/log.hxx>
@@ -1013,11 +1014,7 @@ bool Content::isFolder()
get() ) ),
m_xImpl->getEnvironment() );
-#if !(defined(_MSC_VER) && defined(ENABLE_LTO))
- // Unreachable - cancelCommandExecution always throws an exception.
- // But some compilers complain...
- return false;
-#endif
+ O3TL_UNREACHABLE;
}