www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Re: [libssh2] gcc 4.x warings about 'differ in signedness'

Re: [libssh2] gcc 4.x warings about 'differ in signedness'

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 26 Apr 2007 18:07:06 -0700

On Fri, Apr 27, 2007 at 02:49:59AM +0200, Guenter Knauf wrote:
> Hi all,
> when I compile with gcc 4.x I see a couple of 'differ in signedness' warnings:
> http://www.gknw.net/test/libssh2/build2.log
> I can suppress the warnings with the gcc 4.x-only -Wno-pointer-sign switch:
> http://www.gknw.net/test/libssh2/build1.log
> are we going to fix these soon?
> And if not - is there a way to detect the gcc version from configure and add the switch conditionally?

I get a lot of signed/unsigned comparison warnings on an older gcc as well.
libssh2's use of signed vs. unsigned variables seems pretty inconsistent;
unfortunately, that extends to the public API as well which is more
difficult to change.

>>> Dan

http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
libssh2-devel mailing list
Received on 2007-04-27

the libssh2 team