This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: many -Wincompatible-pointer-types on clang with gdb-7.9
- From: Pedro Alves <palves at redhat dot com>
- To: Jack Howarth <howarth dot mailing dot lists at gmail dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Fri, 27 Feb 2015 23:58:47 +0000
- Subject: Re: many -Wincompatible-pointer-types on clang with gdb-7.9
- Authentication-results: sourceware.org; auth=none
- References: <CADtEn-344TMpjjbMmFzNfbyaR63t1-wS0Wv_JwNr3GYCNe+vJA at mail dot gmail dot com> <54F0DC99 dot 5020904 at redhat dot com> <CADtEn-2orLcoUSem5RuK3LwF-RGauC8LXv8xZem0tGJsDwg0iA at mail dot gmail dot com>
On 02/27/2015 11:23 PM, Jack Howarth wrote:
> Pedro,
> I see...
>
> #ifdef BUILDING_LIBGUILE
> typedef SCM (* scm_t_subr) ();
> #else
> typedef void (*scm_t_subr)();
> #endif
>
> for the current guile 2.0.11 release.
Thanks. Not complaining, really. That's pedantically more correct
as assignment between function pointer and 'void *' is invalid
ISO C (though POSIX makes it valid, because dlsym).
Thanks,
Pedro Alves