Commit 1c0073e3 authored by Kenton Varda's avatar Kenton Varda

Fix GCC: Ignore non-virtual destructor warning.

parent 5f2172c6
......@@ -136,6 +136,12 @@ TEST(Memory, AttachNested) {
KJ_EXPECT(destroyed3 == 3, destroyed3);
}
#if __GNUG__
// We don't actually illegally invoke any non-virtual destructors but it's hard to write this test
// without triggering this warning, so ignore it.
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
#endif
struct StaticType {
int i;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment