aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-08-17 10:41:34 +0200
committerTom de Vries <tdevries@suse.de>2023-08-17 10:41:34 +0200
commit84c9951ebd1da1aa5f0c5a614fe0b630dc603b3b (patch)
tree0ced3e5df5099da5372ec0f5cd9496d3d98771f5 /gdbsupport
parent24a601dd70a53fc87f33196774f8d883be31d2fe (diff)
downloadgdb-84c9951ebd1da1aa5f0c5a614fe0b630dc603b3b.zip
gdb-84c9951ebd1da1aa5f0c5a614fe0b630dc603b3b.tar.gz
gdb-84c9951ebd1da1aa5f0c5a614fe0b630dc603b3b.tar.bz2
[gdb/build, c++20] Stop using deprecated is_pod
When building gdb with clang 15 and -std=c++20, I run into: ... gdbsupport/poison.h:52:11: error: 'is_pod<timeval>' is deprecated: use \ is_standard_layout && is_trivial instead [-Werror,-Wdeprecated-declarations] std::is_pod<T>> ^ ... Fix this by following the suggestion. Likewise in gdb/unittests/ptid-selftests.c. Tested on x86_64-linux.
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/poison.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbsupport/poison.h b/gdbsupport/poison.h
index 956c3d8..63fccb3 100644
--- a/gdbsupport/poison.h
+++ b/gdbsupport/poison.h
@@ -49,7 +49,7 @@ be a compile-time error. */
template<typename T>
struct IsMemsettable
: gdb::Or<std::is_void<T>,
- std::is_pod<T>>
+ gdb::And<std::is_standard_layout<T>, std::is_trivial<T>>>
{};
template <typename T,