[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #63788] -Wincompatible-function-pointer-types warning/error in conf
From: |
Bruno Haible |
Subject: |
[bug #63788] -Wincompatible-function-pointer-types warning/error in configure.ac with Clang 16 |
Date: |
Sat, 11 Feb 2023 12:03:06 -0500 (EST) |
Update of bug #63788 (project libsigsegv):
Status: None => Works For Me
Assigned to: None => haible
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
I can't reproduce this.
I built clang 16.0.0 rc2 from source.
When I use it to build libsigsegv-2.14, I get the same CFG_FAULT value as you
do (according to your config.log), namely fault-linux-i386.h. This file does
not define SIGSEGV_FAULT_HANDLER_ARGLIST, but instead refers to the parent
file fault-posix-ucontext.h. This file has
#define SIGSEGV_FAULT_HANDLER_ARGLIST int sig, siginfo_t *sip, void *ucp
This definition get stuffed into handler-unix.c line 134. So, at
handler-unix.c line 385 there are no incompatible types - it's the same
function type on the right-hand side as on the left-hand side.
In the error message that you showed, you have a function type with ucontext_t
* (instead of void *) in the third argument. There's only one fault-*.h file
that provides this signature in all of libsigsegv, namely
fault-macosdarwin7-powerpc.h — which obviously doesn't apply.
So, I conclude that you must be using neither libsigsegv-2.14, nor
libsigsegv-2.14 with the modifications from
https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/libsigsegv, nor
libsigsegv git master, but something else. Did you make some source
modifications yourself?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63788>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/