33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
|
From b306036aefd1cb02132fbff400ce5bd8bc20f1fe Mon Sep 17 00:00:00 2001
|
||
|
From: Stephan Hartmann <stha09@googlemail.com>
|
||
|
Date: Sat, 27 Jun 2020 17:08:51 +0000
|
||
|
Subject: [PATCH] GCC: suppress unknown diagnostic pragma warning
|
||
|
|
||
|
'-Wdelete-non-abstract-non-virtual-dtor' is a clang-only
|
||
|
flag. Switch pragma diagnostic from GCC to clang.
|
||
|
---
|
||
|
third_party/blink/renderer/platform/heap/finalizer_traits.h | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/third_party/blink/renderer/platform/heap/finalizer_traits.h b/third_party/blink/renderer/platform/heap/finalizer_traits.h
|
||
|
index b727032..90391c0 100644
|
||
|
--- a/third_party/blink/renderer/platform/heap/finalizer_traits.h
|
||
|
+++ b/third_party/blink/renderer/platform/heap/finalizer_traits.h
|
||
|
@@ -43,10 +43,10 @@ struct FinalizerTraitImpl<T, true> {
|
||
|
// an object's base class has a virtual destructor. In case there is no virtual
|
||
|
// destructor present, the object is always finalized through its leaf type. In
|
||
|
// other words: there is no finalization through a base pointer.
|
||
|
-#pragma GCC diagnostic push
|
||
|
-#pragma GCC diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor"
|
||
|
+#pragma clang diagnostic push
|
||
|
+#pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor"
|
||
|
static_cast<T*>(obj)->~T();
|
||
|
-#pragma GCC diagnostic pop
|
||
|
+#pragma clang diagnostic pop
|
||
|
}
|
||
|
};
|
||
|
using FinalizeImpl =
|
||
|
--
|
||
|
2.26.2
|
||
|
|