This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: many -Wincompatible-pointer-types on clang with gdb-7.9


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]