qemu version 10.0.0 fails to build with clang-21 (current trunk)

Building 10.0.0 with clang-21 (current trunk) fails with this error:

clang -m64 -Itcg/libtcg_system.a.p -Itcg -I../tcg -I. -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -fdiagnostics-color=auto -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -fstack-protector-strong -fsanitize=safe-stack -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wformat-security -Wformat-y2k -Wignored-qualifiers -Winit-self -Wmissing-format-attribute -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wstrict-prototypes -Wtype-limits -Wundef -Wvla -Wwrite-strings -Wno-gnu-variable-sized-type-not-at-end -Wno-initializer-overrides -Wno-missing-include-dirs -Wno-psabi -Wno-shift-negative-value -Wno-string-plus-int -Wno-tautological-type-limit-compare -Wno-typedef-redefinition -Wthread-safety -isystem /builddir/build/BUILD/qemu-10.0.0/linux-headers -isystem linux-headers -iquote . -iquote /builddir/build/BUILD/qemu-10.0.0 -iquote /builddir/build/BUILD/qemu-10.0.0/include -iquote /builddir/build/BUILD/qemu-10.0.0/host/include/x86_64 -iquote /builddir/build/BUILD/qemu-10.0.0/host/include/generic -iquote /builddir/build/BUILD/qemu-10.0.0/tcg/i386 -pthread -DSTAP_SDT_V2 -mcx16 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -ftrivial-auto-var-init=zero -fzero-call-used-regs=used-gpr -O2 -flto=thin -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -flto=thin -fexceptions -g -grecord-gcc-switches -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-string-plus-int -fPIE -DCONFIG_SOFTMMU -MD -MQ tcg/libtcg_system.a.p/perf.c.o -MF tcg/libtcg_system.a.p/perf.c.o.d -o tcg/libtcg_system.a.p/perf.c.o -c ../tcg/perf.c
../tcg/perf.c:250:24: error: default initialization of an object of type 'struct debug_entry' with const member leaves the object uninitialized [-Werror,-Wdefault-const-init-field-unsafe]
  250 |     struct debug_entry ent;
      |                        ^
../tcg/perf.c:157:16: note: member 'name' declared 'const' here
  157 |     const char name[];
      |                ^
1 error generated.