diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-18 20:24:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-18 20:24:40 +0100 |
commit | f8779bbcef2a2eeab8d74bce445a0eaceda8bdde (patch) | |
tree | fc8f52d0d8fddeff12c97bb4db0980b0a3be298c /cppu | |
parent | 7e86e18bac7a79f26dc3082f356e8ca9eca9abf3 (diff) |
Avoid -Werror,-Wdelete-non-virtual-dtor with current Clang trunk
Change-Id: I5300cd6ff2c924a4acc01ba7f4478a0db50aa08c
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/qa/test_unotype.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cppu/qa/test_unotype.cxx b/cppu/qa/test_unotype.cxx index a0b63fa738fe..0f2beb08e305 100644 --- a/cppu/qa/test_unotype.cxx +++ b/cppu/qa/test_unotype.cxx @@ -71,7 +71,8 @@ private: // avoid warnings about virtual members and non-virtual dtor public: - static void dummy(DerivedInterface1 * p) { p->~DerivedInterface1(); } + static void dummy(DerivedInterface1 * p) + { p->DerivedInterface1::~DerivedInterface1(); } // ...and avoid warnings about unused ~DerivedInterface1 (see below) }; @@ -81,7 +82,8 @@ private: // avoid warnings about virtual members and non-virtual dtor public: - static void dummy(DerivedInterface2 * p) { p->~DerivedInterface2(); } + static void dummy(DerivedInterface2 * p) + { p->DerivedInterface2::~DerivedInterface2(); } // ...and avoid warnings about unused ~DerivedInterface2 (see below) }; |