Skip to content
Permalink
Browse files
std::is_literal_type causes -Wdeprecated-declarations warning with GC…
…C 11

https://bugs.webkit.org/show_bug.cgi?id=220662
<rdar://problem/73509470>

Patch by Michael Catanzaro <mcatanzaro@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:

Canonical link: https://commits.webkit.org/234811@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
mcatanzaro authored and webkit-commit-queue committed Mar 3, 2021
1 parent 2b29298 commit 95cfff2929185ffd01ca4776c636fdcf4ccf7b29
Showing 2 changed files with 18 additions and 1 deletion.
@@ -1,3 +1,16 @@
2021-03-03 Michael Catanzaro <mcatanzaro@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_horton@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:
@@ -387,6 +387,8 @@ struct __any_backup_storage_required<Variant<_Types...> >{
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 @@ struct __variant_storage{
}
static void __destroy(__type&){}
};
ALLOW_DEPRECATED_DECLARATIONS_END

template<typename _Type>
struct __storage_wrapper{

0 comments on commit 95cfff2

Please sign in to comment.