Subject: Re: Warnings during building

Re: Warnings during building

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 16 Dec 2009 16:38:51 +0100

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
Received on 2009-12-16