[gdb/build, c++20] Fix invalid conversion in test_symbols
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)
commit2b9ed6db3fb08feab70857dc7eb94fbe6a45e069
treec06354de44e2486136324b6b3055084a7b098dea
parent5bd5fecdd25eda1335796df8d77511f62bbd1898
[gdb/build, c++20] Fix invalid conversion in test_symbols

When building gdb with -std=c++20, I run into:
...
gdb/dwarf2/read.c:2709:3: error: invalid conversion from ‘const char8_t*’ to \
  ‘const char*’ [-fpermissive]
 2709 |   u8"u8função",
      |   ^~~~~~~~~~~~
      |   |
      |   const char8_t*
...

Fix this by making the conversion explicit.

Tested on x86_64-linux.
gdb/dwarf2/read.c