Avoid -Werror,-Wdelete-non-virtual-dtor with current Clang trunk
Change-Id: I5300cd6ff2c924a4acc01ba7f4478a0db50aa08c
This commit is contained in:
@@ -71,7 +71,8 @@ private:
|
|||||||
// avoid warnings about virtual members and non-virtual dtor
|
// avoid warnings about virtual members and non-virtual dtor
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void dummy(DerivedInterface1 * p) { p->~DerivedInterface1(); }
|
static void dummy(DerivedInterface1 * p)
|
||||||
|
{ p->DerivedInterface1::~DerivedInterface1(); }
|
||||||
// ...and avoid warnings about unused ~DerivedInterface1 (see below)
|
// ...and avoid warnings about unused ~DerivedInterface1 (see below)
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -81,7 +82,8 @@ private:
|
|||||||
// avoid warnings about virtual members and non-virtual dtor
|
// avoid warnings about virtual members and non-virtual dtor
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void dummy(DerivedInterface2 * p) { p->~DerivedInterface2(); }
|
static void dummy(DerivedInterface2 * p)
|
||||||
|
{ p->DerivedInterface2::~DerivedInterface2(); }
|
||||||
// ...and avoid warnings about unused ~DerivedInterface2 (see below)
|
// ...and avoid warnings about unused ~DerivedInterface2 (see below)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user