Hi,
I encountered the following warnings while compiling libssh2 v1.1 on
ia64-hp-hpux11.23
"sftp.c", line 1993: warning #2068-D: integer conversion resulted in a
change
of sign
retcode = -1;
^
"sftp.c", line 2000: warning #2068-D: integer conversion resulted in a
change
of sign
retcode = -1;
^
"sftp.c", line 2007: warning #2068-D: integer conversion resulted in a
change
of sign
retcode = -1;
^
'retcode' is defined as 'unsigned long'. Is this intentional? I'm
referring to
http://docs.hp.com/en/11925/Diagnostics_Documentation/Diagnostics_index.
htm#2068
"2068 integer conversion resulted in a change of sign
Cause:
Conversion of integer resulted in sign change. Either an unsigned 1-bit
bitfield was assigned -1, or a signed 1-bit bitfield was assigned 1.
Example:
#define NEGATIVE (-1)
int main() {
unsigned int a = NEGATIVE;
}
Action:
Conversion from a signed int to unsigned leads to change of sign. This
might result in an unexpected behavior of the code. If the sign of the
integer is not a concern, then this diagnostic can be ignored.
Otherwise, do not assign a signed value to unsigned type and vice versa.
"
Br,
/jUSSi
-- perl -e '$@=[[0,0112,0,0],[0,0101,0,0], [0,0120,0,0],[0,0110,0,0]];$[=256/8-0x1D; print(chr(@{$_}[+($[+1-1+1)]))for(@{$@});' ------------------------------------------------------------------------------ _______________________________________________ libssh2-devel mailing list libssh2-devel_at_lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-develReceived on 2009-04-06