From 9c0ba0ba41cb3b814cc8bf7a33abf1245d4b241e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 3 Sep 2013 23:51:32 +0300 Subject: WaE: Unreachable code This time noticed by the linker when doing link-time code generation (!). Change-Id: I9600571bef2a8cc30b2e28dd52b01633bab55f32 --- ucbhelper/source/client/content.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ucbhelper') diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index aac47d4b2d8d..850f56eef7b1 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -1049,9 +1049,11 @@ sal_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 sal_False; +#endif } //========================================================================= @@ -1070,9 +1072,11 @@ 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 } //========================================================================= -- cgit