#203: Compile warnings under VC6 (Win32, 32bit) for DLL
----------------------------------------------------------------+-----------
Reporter: me.yahoo.com/a/zb4rfgwuv_ft.mggqltssk.ndw--#37f15 | Owner:
Type: build error | Status: new
Priority: normal | Milestone: 1.2.8
Component: API | Version: 1.2.7
Keywords: | Blocks:
Blocked By: |
----------------------------------------------------------------+-----------
The following warnings are being reported against 1.2.8-20101213 when
compiling the DLL using VC6 32bit:
libssh2-1.2.8-20101213\src\scp.c(728) : warning C4244: '=' : conversion
from 'long ' to 'unsigned short ', possible loss of data
libssh2-1.2.8-20101213\src\session.c(1407) : warning C4018: '==' :
signed/unsigned mismatch
libssh2-1.2.8-20101213\src\session.c(1408) : warning C4018: '>' :
signed/unsigned mismatch
libssh2-1.2.8-20101213\src\session.c(1412) : warning C4018: '==' :
signed/unsigned mismatch
libssh2-1.2.8-20101213\src\session.c(1413) : warning C4018: '>' :
signed/unsigned mismatch
libssh2-1.2.8-20101213\src\sftp.c(1446) : warning C4244: 'initializing' :
conversion from 'unsigned __int64 ' to 'unsigned int ', possible loss of
data
libssh2-1.2.8-20101213\src\sftp.c(2206) : warning C4244: '=' : conversion
from 'unsigned __int64 ' to 'unsigned int ', possible loss of data
libssh2-1.2.8-20101213\src\sftp.c(2318) : warning C4244: '=' : conversion
from 'unsigned __int64 ' to 'unsigned int ', possible loss of data
libssh2-1.2.8-20101213\src\packet.c(1172) : warning C4761: integral size
mismatch in argument; conversion supplied
The resulting library compiles and appears to work correctly, although I'm
currently having issues with sftp_write() returning zero which may be
unrelated.
-- Ticket URL: <http://trac.libssh2.org/ticket/203> libssh2 <http://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-12-13