diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 10:19:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 10:19:14 +0100 |
commit | 146bd125a01742b2a6561a4a23735f37867d8221 (patch) | |
tree | e803e1f14b3ddc268e2e05509efe9b15b5b68f7f | |
parent | 93ce2d8b686803ea81fe2504f956e66f56cd183e (diff) |
Work around a Clang trunk (towards 3.6) -Werror,-Wunused-value
Change-Id: I3ee32c5bd379bb851f8f255faa93d96227dcff84
-rw-r--r-- | tools/source/debug/debug.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx index 9e65c44fa9e6..093622ec51f7 100644 --- a/tools/source/debug/debug.cxx +++ b/tools/source/debug/debug.cxx @@ -324,7 +324,20 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c } if ( exception.Context.is() ) { +#if defined __clang__ +#if __has_warning("-Wunused-value") +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-value" + // "expression with side effects will be evaluated despite being used as an + // operand to 'typeid'" +#endif +#endif const char* pContext = typeid( *exception.Context.get() ).name(); +#if defined __clang__ +#if __has_warning("-Wunused-value") +#pragma GCC diagnostic pop +#endif +#endif sMessage += "\ncontext: "; sMessage += pContext; } |