From c6130722c3b4aecee8d2d9b4b6e05b017b82ad27 Mon Sep 17 00:00:00 2001 From: jca Date: Wed, 6 Sep 2023 15:02:32 +0000 Subject: [PATCH] Use casts to force two function pointers assignements and fix build with clang-16 "looks fine to me" robert@, ok kettenis@ --- gnu/usr.bin/binutils/gdb/gnu-v3-abi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/binutils/gdb/gnu-v3-abi.c b/gnu/usr.bin/binutils/gdb/gnu-v3-abi.c index 195af26400b..3c719f6e679 100644 --- a/gnu/usr.bin/binutils/gdb/gnu-v3-abi.c +++ b/gnu/usr.bin/binutils/gdb/gnu-v3-abi.c @@ -427,8 +427,8 @@ init_gnuv3_ops (void) gnu_v3_abi_ops.shortname = "gnu-v3"; gnu_v3_abi_ops.longname = "GNU G++ Version 3 ABI"; gnu_v3_abi_ops.doc = "G++ Version 3 ABI"; - gnu_v3_abi_ops.is_destructor_name = is_gnu_v3_mangled_dtor; - gnu_v3_abi_ops.is_constructor_name = is_gnu_v3_mangled_ctor; + gnu_v3_abi_ops.is_destructor_name = (enum dtor_kinds (*)(const char *))is_gnu_v3_mangled_dtor; + gnu_v3_abi_ops.is_constructor_name = (enum ctor_kinds (*)(const char *))is_gnu_v3_mangled_ctor; gnu_v3_abi_ops.is_vtable_name = gnuv3_is_vtable_name; gnu_v3_abi_ops.is_operator_name = gnuv3_is_operator_name; gnu_v3_abi_ops.rtti_type = gnuv3_rtti_type; -- 2.20.1