On Wed December 16 2009 16:15:32 Simon Josefsson wrote:
> Better now?  Btw, what kind of compiler warning flags are you using?

Yes, thanks for considering it! gcc -pedantic is sufficient for me to show
the warning. Nevertheless using void* for function pointers is always bad 
idea. I see there is the same bug in the libssh2 public interface. However
it needs to wait till next major release to not break the ABI I guess.

In general you can't rely on assumption:
        sizeof (void *) == sizeof (void (*)())

Kamil
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to