[gdb/build, c++20] Stop using deprecated is_pod
authorTom de Vries <tdevries@suse.de>
Thu, 17 Aug 2023 08:41:34 +0000 (10:41 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 17 Aug 2023 08:41:34 +0000 (10:41 +0200)
commit84c9951ebd1da1aa5f0c5a614fe0b630dc603b3b
tree0ced3e5df5099da5372ec0f5cd9496d3d98771f5
parent24a601dd70a53fc87f33196774f8d883be31d2fe
[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.
gdb/unittests/ptid-selftests.c
gdbsupport/poison.h