summaryrefslogtreecommitdiff
path: root/include/cppuhelper/implbase4.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-04 08:49:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-04 08:49:44 +0100
commit4b5efd930895c87829f1fc404bfc5de8f139f873 (patch)
tree3d59ef41d40bd937ce2668fda2b81bee3f381b90 /include/cppuhelper/implbase4.hxx
parent505473154bd2e717d21b1a7ff1fce322403049df (diff)
Silence -Werror,-Wnon-virtual-dtor (clang-cl)
Change-Id: Icac0f029461c886ebb03aedcd54189116b66d8a3
Diffstat (limited to 'include/cppuhelper/implbase4.hxx')
-rw-r--r--include/cppuhelper/implbase4.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cppuhelper/implbase4.hxx b/include/cppuhelper/implbase4.hxx
index 0cd0881f5a66..645354398dfd 100644
--- a/include/cppuhelper/implbase4.hxx
+++ b/include/cppuhelper/implbase4.hxx
@@ -82,8 +82,14 @@ namespace cppu
#if !defined _MSC_VER // public -> protected changes mangled names there
protected:
+#elif defined __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
#endif
~ImplHelper4() throw () {}
+#if defined _MSC_VER && defined __clang__
+#pragma clang diagnostic pop
+#endif
};
/** Implementation helper implementing interfaces css::lang::XTypeProvider and
css::uno::XInterface which supports weak mechanism to be held weakly