Title: [273841] trunk/Source/WTF
- Revision
- 273841
- Author
- commit-qu...@webkit.org
- Date
- 2021-03-03 14:23:18 -0800 (Wed, 03 Mar 2021)
Log Message
std::is_literal_type causes -Wdeprecated-declarations warning with GCC 11
https://bugs.webkit.org/show_bug.cgi?id=220662
<rdar://problem/73509470>
Patch by Michael Catanzaro <mcatanz...@gnome.org> on 2021-03-03
Reviewed by Darin Adler.
Ignore the warning. It would be better to not use the deprecated std::is_literal_type, but
this works for now.
* wtf/Variant.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (273840 => 273841)
--- trunk/Source/WTF/ChangeLog 2021-03-03 22:23:00 UTC (rev 273840)
+++ trunk/Source/WTF/ChangeLog 2021-03-03 22:23:18 UTC (rev 273841)
@@ -1,3 +1,16 @@
+2021-03-03 Michael Catanzaro <mcatanz...@gnome.org>
+
+ std::is_literal_type causes -Wdeprecated-declarations warning with GCC 11
+ https://bugs.webkit.org/show_bug.cgi?id=220662
+ <rdar://problem/73509470>
+
+ Reviewed by Darin Adler.
+
+ Ignore the warning. It would be better to not use the deprecated std::is_literal_type, but
+ this works for now.
+
+ * wtf/Variant.h:
+
2021-03-03 Tim Horton <timothy_hor...@apple.com>
Modernize WebKit2 PDFKit softlinking
@@ -6609,7 +6622,8 @@
Reviewed by Carlos Garcia Campos.
-  use the RunLoop. Let's match them for consistency, and to delete some
+ As of https://bugs.webkit.org/show_bug.cgi?id=213063, Darwin platforms
+ use the RunLoop. Let's match them for consistency, and to delete some
code.
* wtf/generic/MainThreadGeneric.cpp:
Modified: trunk/Source/WTF/wtf/Variant.h (273840 => 273841)
--- trunk/Source/WTF/wtf/Variant.h 2021-03-03 22:23:00 UTC (rev 273840)
+++ trunk/Source/WTF/wtf/Variant.h 2021-03-03 22:23:18 UTC (rev 273841)
@@ -387,6 +387,8 @@
template<typename ... _Types>
union __variant_data;
+// std::is_literal_type is deprecated in C++17 and removed in C++20
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
template<typename _Type,bool=std::is_literal_type<_Type>::value>
struct __variant_storage{
typedef _Type __type;
@@ -405,6 +407,7 @@
}
static void __destroy(__type&){}
};
+ALLOW_DEPRECATED_DECLARATIONS_END
template<typename _Type>
struct __storage_wrapper{
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes