Dan Eble <d...@faithful.be> writes:

> g++ 8 is spamming my build log with messages like this:
>
>     /root/lilypond-src/lily/include/smobs.hh:228:37:
>     warning: cast between incompatible function types
>     from 'scm_unused_struct* (*)(SCM, SCM, SCM, SCM)’
>     {aka 'scm_unused_struct* (*)(scm_unused_struct*,
>     scm_unused_struct*, scm_unused_struct*, scm_unused_struct*)’}
>     to 'scm_t_subr' {aka 'scm_unused_struct* (*)()’}
>     [-Wcast-function-type]
>                          (scm_t_subr)smob_trampoline<PMF>,
>                                      ^~~~~~~~~~~~~~~~~~~~
>
> The issue seems to be the differing number of parameters.
> https://stackoverflow.com/q/559581
> https://stackoverflow.com/q/188839
>
> Do you see anything worth doing about it at this time?  I could possibly 
> bring myself to ignore it, if you would recommend that.

I think that the cast is there in order to match a function's argument
type.  Clearly it's the fault of the Guile function in question to
receive arguments of a type that's different from how it calls it.

So we probably need to crank out a reinterpret_cast here.

-- 
David Kastrup

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to