Subject: [ libssh2-Bugs-2787839 ] Warnings when compiling under MSVC2008

[ libssh2-Bugs-2787839 ] Warnings when compiling under MSVC2008

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 07 May 2009 19:40:12 +0000

Bugs item #2787839, was opened at 2009-05-06 14:50
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2787839&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Steven Van Ingelgem (g00fy)
>Assigned to: Daniel Stenberg (bagder)
Summary: Warnings when compiling under MSVC2008

Initial Comment:
..\..\externals\libssh2\src\sftp.c(381) : warning C4244: 'initializing' : conversion from 'time_t' to 'long', possible loss of data
..\..\externals\libssh2\src\sftp.c(1657) : warning C4244: 'return' : conversion from 'libssh2_uint64_t' to 'size_t', possible loss of data

..\..\externals\libssh2\src\scp.c(750) : warning C4244: '=' : conversion from 'long' to 'unsigned short', possible loss of data

..\..\externals\libssh2\src\packet.c(1081) : warning C4244: 'initializing' : conversion from 'time_t' to 'long', possible loss of data
..\..\externals\libssh2\src\packet.c(1190) : warning C4244: 'initializing' : conversion from 'time_t' to 'long', possible loss of data

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2009-05-07 21:40

Message:
So what "error levels" are you guys using and what do you think we should
consider a "sensible" level to be?

----------------------------------------------------------------------

Comment By: Steven Van Ingelgem (g00fy)
Date: 2009-05-06 15:08

Message:
Probably this is because you use the default projects. I re-create my
project via CMake so I could hang it in my current build-tree.

Very probably the error level is higher than the one in the default
projects?

----------------------------------------------------------------------

Comment By: Neil Gierman (roadrunn)
Date: 2009-05-06 15:05

Message:
I am using VS2008 and don't get any warnings. In my pre-build events, I am
copying the libssh2_config.h from the win32 directory in the source to the
src directory.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2787839&group_id=125852

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-05-07