diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-09-04 14:59:02 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-09-04 15:00:07 +0300 |
commit | d868e2d2e38ee8f0a1427dd2de5c0fc547b28506 (patch) | |
tree | bb702a886778a422dc9c1cc665a30104f587274e /ucbhelper | |
parent | 5326020f85b67faab34bca5c605b6070c6c4bef0 (diff) |
WaE: Unreachable code: Use SAL_WNOUNREACHABLE_CODE_PUSH/POP
Cleaner than my first attempt.
This reverts commit 9c0ba0ba41cb3b814cc8bf7a33abf1245d4b241e.
Change-Id: Iec9da427ab2a92cb0765f73af14d83a37f765290
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 850f56eef7b1..e36207b1c25b 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -1057,6 +1057,9 @@ sal_Bool Content::isFolder() } //========================================================================= + +SAL_WNOUNREACHABLE_CODE_PUSH + sal_Bool Content::isDocument() throw( CommandAbortedException, RuntimeException, Exception ) { @@ -1072,13 +1075,13 @@ sal_Bool Content::isDocument() get() ) ), m_xImpl->getEnvironment() ); -#if !(defined(_MSC_VER) && defined(ENABLE_LTO)) // Unreachable - cancelCommandExecution always throws an exception, // But some compilers complain... return sal_False; -#endif } +SAL_WNOUNREACHABLE_CODE_POP + //========================================================================= //========================================================================= // |